From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#2677: 23.0.91; need ability to run emacs --daemon in the foreground Date: Mon, 29 Feb 2016 12:08:49 -0500 Message-ID: References: <87vb58yy6f.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456765821 13033 80.91.229.3 (29 Feb 2016 17:10:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 17:10:21 +0000 (UTC) Cc: 2677@debbugs.gnu.org, rfrancoise@debian.org, Jameson Rollins To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 18:10:12 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 1aaRKl-0004rG-U9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 18:10:12 +0100 Original-Received: from localhost ([::1]:37939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaRKl-00070R-3q for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 12:10:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaRKd-0006zg-C8 for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:10:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaRKc-0008PE-CU for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:10:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaRKc-0008PA-8I for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaRKc-0007iJ-5W for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 12:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 17:10:02 +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.145676575029582 (code B ref 2677); Mon, 29 Feb 2016 17:10:02 +0000 Original-Received: (at 2677) by debbugs.gnu.org; 29 Feb 2016 17:09:10 +0000 Original-Received: from localhost ([127.0.0.1]:53903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaRJm-0007h4-2D for submit@debbugs.gnu.org; Mon, 29 Feb 2016 12:09:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42426) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaRJj-0007gr-Sb for 2677@debbugs.gnu.org; Mon, 29 Feb 2016 12:09:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaRJd-000838-TA for 2677@debbugs.gnu.org; Mon, 29 Feb 2016 12:09:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaRJT-0007yZ-Bf; Mon, 29 Feb 2016 12:08:51 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aaRJR-0001CF-Eq; Mon, 29 Feb 2016 12:08:49 -0500 X-Spook: Recruitment Al Qaida Tremor cracking threat fissionable X-Ran: U*".Yv_{CBr(y3:ZjC<64Gc1O>:61frI%;fLv(YXYkm#BoVY"ciIp]M1jBIiE*'kLd'5s5 X-Hue: blue X-Attribution: GM In-Reply-To: <87vb58yy6f.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 29 Feb 2016 14:48:08 +1100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:114143 Archived-At: 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.