From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jameson Graef Rollins Newsgroups: gmane.emacs.bugs Subject: bug#2677: 23.0.91; need ability to run emacs --daemon in the foreground Date: Mon, 29 Feb 2016 09:22:24 -0800 Message-ID: <87d1rfv3cf.fsf@servo.finestructure.net> References: <87vb58yy6f.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1456766608 27893 80.91.229.3 (29 Feb 2016 17:23:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 17:23:28 +0000 (UTC) Cc: 2677@debbugs.gnu.org, rfrancoise@debian.org To: Glenn Morris , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 18:23:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaRXR-0003Xy-Fb for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 18:23:17 +0100 Original-Received: from localhost ([::1]:38021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaRXQ-0007Ne-HE for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 12:23:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaRXI-0007Fk-O3 for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:23:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaRXD-00040I-Kt for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:23:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaRXD-0003zu-BF for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:23:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaRXD-0001Gy-7j for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:23:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jameson Graef Rollins Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 17:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2677 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 2677-submit@debbugs.gnu.org id=B2677.14567665544809 (code B ref 2677); Mon, 29 Feb 2016 17:23:03 +0000 Original-Received: (at 2677) by debbugs.gnu.org; 29 Feb 2016 17:22:34 +0000 Original-Received: from localhost ([127.0.0.1]:53930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaRWk-0001FU-EK for submit@debbugs.gnu.org; Mon, 29 Feb 2016 12:22:34 -0500 Original-Received: from outgoing-mail.its.caltech.edu ([131.215.239.19]:49551) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaRWi-0001FI-S8 for 2677@debbugs.gnu.org; Mon, 29 Feb 2016 12:22:33 -0500 Original-Received: from smtp01.caltech.edu (localhost [127.0.0.1]) by smtp01.caltech.edu (Postfix) with ESMTP id F16DDA1B16; Mon, 29 Feb 2016 09:22:26 -0800 (PST) Original-Received: from finestructure.net (gwave-185.ligo.caltech.edu [131.215.114.185]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jrollins) by smtp-server.its.caltech.edu (Postfix) with ESMTPSA id 19ED9A1F5D; Mon, 29 Feb 2016 09:22:26 -0800 (PST) Original-Received: by finestructure.net (Postfix, from userid 1000) id 0960B601F0; Mon, 29 Feb 2016 09:22:26 -0800 (PST) In-Reply-To: User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114146 Archived-At: --=-=-= Content-Type: text/plain On Mon, Feb 29 2016, Glenn Morris wrote: > Lars Ingebrigtsen wrote: > >> Jameson Rollins 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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJW1H5QAAoJEO00zqvie6q8hmQQAKJ0dW6km/mTCbqJVwRWxePC u0Ltt0Ub1qf5RcfF0J7F/E0pvn0OgYTUUBCDmN3u4n6DnqfXLfi7+O8S74/Kp17R gWYC4PQDXPFFgtL8c/AXIZd/h4XxA4xTP/FDnaawooE2XpomS5zeqwbdOm9ktVxH IBRZy0h75rfOWzALYCv7AOfc5zdCU08br7WPeLaAbCQnpwzDcmiOnShJZgNHiJem DAgSnpVIhI3psFBOIk20TrEeFwt1iEcFFZ4vktS6cFsHggYXhEmu014kzBFj7RMi 8Bvj16dYBqqJSwPRoHdyJJG+MkPtUiQwFo/x5b/eQIH94Z1uJGjSHFfVB0OubaQ4 Kssn3EVp4ICENAsA4q1spgDnRk6wkwRi0aysREQl5KA7OpjBvcU0pVVb2XofLfg4 U7pKGogUzujYbCZiph/5K5Q5UzYcqBfMkv8iXslaSZn7+lbu1xxW5f4AauVTgsWC 3DieDBmTnELhB375qEAprVuhB9Ph28Ow68j0UsC13ECbrYKVYtDg6PKuLkAc6uuT XRkl6xsSoWz0E+hl1Ytmgk4DO+/RlTGjMwtJcC/EpZwLlO3hOswoYzzBi/EvcuIY J6BtfXHU7kFIFvZkXdqPyEGqXwFSRtMmUypTEQe7HiS6JbVLxlfDbdLWY1xCUydZ MftLMQGbbpzeieTlog3n =WMHk -----END PGP SIGNATURE----- --=-=-=--