all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jameson Graef Rollins <jrollins@finestructure.net>
To: Glenn Morris <rgm@gnu.org>, Lars Ingebrigtsen <larsi@gnus.org>
Cc: 2677@debbugs.gnu.org, rfrancoise@debian.org
Subject: bug#2677: 23.0.91; need ability to run emacs --daemon in the foreground
Date: Mon, 29 Feb 2016 09:22:24 -0800	[thread overview]
Message-ID: <87d1rfv3cf.fsf@servo.finestructure.net> (raw)
In-Reply-To: <bdpovf1m1q.fsf@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]

On Mon, Feb 29 2016, Glenn Morris <rgm@gnu.org> wrote:
> Lars Ingebrigtsen wrote:
>
>> Jameson Rollins <jrollins@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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  parent reply	other threads:[~2016-02-29 17:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-14  5:23 bug#2677: 23.0.91; need ability to run emacs --daemon in the foreground Jameson Rollins
2016-02-29  3:48 ` Lars Ingebrigtsen
2016-02-29 17:08   ` Glenn Morris
2016-02-29 17:11     ` Glenn Morris
2016-02-29 17:22     ` Jameson Graef Rollins [this message]
2016-11-16  7:35       ` Glenn Morris
2016-11-16 15:50         ` Eli Zaretskii
2016-11-18  7:01           ` Glenn Morris
     [not found] ` <handler.2677.D2677.14792817396961.notifdone@debbugs.gnu.org>
2016-11-16 17:21   ` bug#2677: closed (Re: bug#2677: 23.0.91; need ability to run emacs --daemon in the foreground) Jameson Graef Rollins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1rfv3cf.fsf@servo.finestructure.net \
    --to=jrollins@finestructure.net \
    --cc=2677@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rfrancoise@debian.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.