GNU bug report logs -
#2677
23.0.91; need ability to run emacs --daemon in the foreground
Previous Next
To reply to this bug, email your comments to 2677 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2677
; Package
emacs
.
(Sun, 15 Mar 2009 04:15:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jameson Rollins <jrollins <at> finestructure.net>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 15 Mar 2009 04:15:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
This is a feature request more than a bug: I would really like to see
the ability to run the emacs server daemon ("emacs --daemon") in the
foreground. This would be very useful. I would like to be able to
start/control this daemon with a service supervisor (i.e. runit [0]).
This would allow me to easily start the daemon on system start up, and
have access to the daemon from all xsessions and virtual terminals.
I would also be prefer to be able to specify daemon parameters as
well, such as the location of the socket file.
I find the new server to be incredibly useful. It is a really great
new feature. I would just like to see these small changes so that I
can really turn my editor into the server it needs to be.
Thanks for all the great work, and let me know if I can provide any
additional information.
[0] http://smarden.org/runit/
In GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12)
of 2009-02-28 on elegiac, modified by Debian
(emacs-snapshot package, version 1:20090228-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.91/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.91/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
shell-dirtrack-mode: t
server-mode: t
iswitchb-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
x e c SPC m p d p r o x y C-x b RET C-x b RET ESC [
B ESC [ B RET ESC O a ESC [ B C-k C-k C-x C-s C-y ESC
[ B ESC [ B C-x C-s C-x b RET e x e c SPC 2 > & 1 C-x
C-s ESC [ B ESC [ B ESC [ B C-x C-s C-x k RET C-x C-s
C-x C-f ESC [ A ESC b C-k l o TAB r u TAB RET C-x k
RET C-x C-s C-x k RET C-x C-g C-f C-x C-f ESC [ A DEL
DEL DEL c o n f i g RET s s i z e DEL DEL DEL DEL 1
0 0 0 0 0 0 RET n n u m DEL DEL DEL 3 DEL 2 ESC [ B
ESC [ B RET C-x C-s C-x C-c C-g C-x k RET ESC [ B ESC
[ B ESC [ C ESC [ C ESC [ C ESC [ C ESC [ C ~ / b i
n / C-x C-s C-x C-c ESC [ B ESC [ C ESC [ C ESC [ C
ESC [ C ESC [ C ESC [ B C-d / h o m e / j r o l l i
n s C-x C-s C-x C-c <switch-frame> C-x C-f ESC [ A
ESC [ A ESC [ B RET ESC [ B ESC [ B ESC [ C ESC [ C
ESC [ C ESC [ C ESC [ C c h p s t SPC e n v SPC C-x
C-s ESC b - e SPC C-x C-s C-x C-s C-x C-s C-x C-s C-x
k RET ESC x r e p o TAB r TAB RET
Recent messages:
Setting up indent for shell type sh
setting up indent stuff
Indentation variables are now local.
Indentation setup for shell type sh
Saving file /home/jrollins/.service/mpdproxy/run...
Wrote /home/jrollins/.service/mpdproxy/run
Saving file /home/jrollins/.service/mpdproxy/run...
Wrote /home/jrollins/.service/mpdproxy/run
(No changes need to be saved) [3 times]
Making completion list...
Severity set to `wishlist' from `normal'
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Sun, 15 Mar 2009 15:35:04 GMT)
Full text and
rfc822 format available.
Merged 2677 4944.
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Sun, 29 May 2011 19:29:02 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 05 Oct 2011 06:46:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2677
; Package
emacs
.
(Mon, 29 Feb 2016 03:49:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 2677 <at> debbugs.gnu.org (full text, mbox):
Jameson Rollins <jrollins <at> finestructure.net> writes:
> This is a feature request more than a bug: I would really like to see
> the ability to run the emacs server daemon ("emacs --daemon") in the
> foreground. This would be very useful. I would like to be able to
> start/control this daemon with a service supervisor (i.e. runit [0]).
> This would allow me to easily start the daemon on system start up, and
> have access to the daemon from all xsessions and virtual terminals.
>
> I would also be prefer to be able to specify daemon parameters as
> well, such as the location of the socket file.
--daemon is a switch for running Emacs in the background. If you don't
want Emacs running in the background, you don't have to do anything in
particular.
And setting the server socket location can be done easily from an .el
file or with --eval. So I don't really think there's anything that
needs to be done here. Please reopen the bug report if you disagree.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
2677 <at> debbugs.gnu.org and Jameson Rollins <jrollins <at> finestructure.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 29 Feb 2016 03:49:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2677
; Package
emacs
.
(Mon, 29 Feb 2016 17:10:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 2677 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen wrote:
> Jameson Rollins <jrollins <at> finestructure.net> writes:
>
>> This is a feature request more than a bug: I would really like to see
>> the ability to run the emacs server daemon ("emacs --daemon") in the
>> foreground. This would be very useful. I would like to be able to
>> start/control this daemon with a service supervisor (i.e. runit [0]).
>> This would allow me to easily start the daemon on system start up, and
>> have access to the daemon from all xsessions and virtual terminals.
>
> --daemon is a switch for running Emacs in the background. If you don't
> want Emacs running in the background, you don't have to do anything in
> particular.
--daemon _should_ be a switch for running a "headless" Emacs.
The fact that it forks and runs in the background is not an essential
condition, and the justification for not doing so is provided in the
report. See eg "new-style daemons" on
https://www.freedesktop.org/software/systemd/man/daemon.html
I guess that systemd type = forking should be able to handle current
Emacs, but the above reference says that "new-style" daemons are
preferred.
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 29 Feb 2016 17:11:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2677
; Package
emacs
.
(Mon, 29 Feb 2016 17:12:01 GMT)
Full text and
rfc822 format available.
Message #24 received at 2677 <at> debbugs.gnu.org (full text, mbox):
PS there's more explanation in the merged bug 4944, so I reopened this.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2677
; Package
emacs
.
(Mon, 29 Feb 2016 17:23:03 GMT)
Full text and
rfc822 format available.
Message #27 received at 2677 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Mon, Feb 29 2016, Glenn Morris <rgm <at> gnu.org> wrote:
> Lars Ingebrigtsen wrote:
>
>> Jameson Rollins <jrollins <at> finestructure.net> writes:
>>
>>> This is a feature request more than a bug: I would really like to see
>>> the ability to run the emacs server daemon ("emacs --daemon") in the
>>> foreground. This would be very useful. I would like to be able to
>>> start/control this daemon with a service supervisor (i.e. runit [0]).
>>> This would allow me to easily start the daemon on system start up, and
>>> have access to the daemon from all xsessions and virtual terminals.
>>
>> --daemon is a switch for running Emacs in the background. If you don't
>> want Emacs running in the background, you don't have to do anything in
>> particular.
>
> --daemon _should_ be a switch for running a "headless" Emacs.
> The fact that it forks and runs in the background is not an essential
> condition, and the justification for not doing so is provided in the
> report. See eg "new-style daemons" on
> https://www.freedesktop.org/software/systemd/man/daemon.html
>
> I guess that systemd type = forking should be able to handle current
> Emacs, but the above reference says that "new-style" daemons are
> preferred.
Glenn, than you very much for responding to this and reopening the bug
(I was going to reopen as well). The issue is as you describe. There
should at least be a way to operate the emacs server such that it
does not fork, but just runs in a "headless" mode, with logs to stderr.
This is the "new-style" that you're referring to, that is how all modern
init systems handle daemons.
Thanks for the consideration.
jamie.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Wed, 16 Nov 2016 07:36:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jameson Rollins <jrollins <at> finestructure.net>
:
bug acknowledged by developer.
(Wed, 16 Nov 2016 07:36:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 2677-done <at> debbugs.gnu.org (full text, mbox):
Version: 26.1
Rev 36b99556 added --new-daemon which runs in the foreground.
Sorry for the huge delay.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Wed, 16 Nov 2016 07:36:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kenny Stuart <kstuart <at> hotmail.co.uk>
:
bug acknowledged by developer.
(Wed, 16 Nov 2016 07:36:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2677
; Package
emacs
.
(Wed, 16 Nov 2016 15:51:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 2677 <at> debbugs.gnu.org (full text, mbox):
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Wed, 16 Nov 2016 02:35:29 -0500
>
> Version: 26.1
>
> Rev 36b99556 added --new-daemon which runs in the foreground.
> Sorry for the huge delay.
Thanks.
I wonder if the options should better be called --daemon-bg/fg or
maybe --daemon=bg/fg. That might better explain the nature of the
distinction than "new" and "old".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2677
; Package
emacs
.
(Wed, 16 Nov 2016 17:23:01 GMT)
Full text and
rfc822 format available.
Message #43 received at 2677 <at> debbugs.gnu.org (full text, mbox):
On Tue, Nov 15 2016, GNU bug Tracking System <help-debbugs <at> gnu.org> wrote:
> Rev 36b99556 added --new-daemon which runs in the foreground.
> Sorry for the huge delay.
Thank you!!!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2677
; Package
emacs
.
(Fri, 18 Nov 2016 07:02:02 GMT)
Full text and
rfc822 format available.
Message #46 received at 2677 <at> debbugs.gnu.org (full text, mbox):
There were more replies on emacs-devel, so I followed up there.
This bug report was last modified 7 years and 159 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.