From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Running emacs deamon outside login Date: Sun, 24 Jan 2010 07:53:59 +0100 Message-ID: <20100124065359.GA20305@tomas> References: <20100122035249.98DE49BBF0@mxperim5.sea5.speakeasy.net> <20100123193851.GA389@srevilak.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264316181 14861 80.91.229.12 (24 Jan 2010 06:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2010 06:56:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Steve Revilak Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 24 07:56:13 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYwOL-00068X-5o for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 07:56:13 +0100 Original-Received: from localhost ([127.0.0.1]:51732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYwOM-0000qF-5n for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 01:56:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYwNf-0000oe-SY for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 01:55:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYwNZ-0000lg-O1 for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 01:55:30 -0500 Original-Received: from [199.232.76.173] (port=51511 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYwNZ-0000la-KB for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 01:55:25 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:52000 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NYwNZ-0001wq-58 for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 01:55:25 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id E716A9004A; Sun, 24 Jan 2010 07:53:59 +0100 (CET) Content-Disposition: inline In-Reply-To: <20100123193851.GA389@srevilak.net> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71409 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Jan 23, 2010 at 02:38:51PM -0500, Steve Revilak wrote: >> Subject: Re: Running emacs deamon outside login > > srevilak> nohup emacs --daemon /dev/null 2>&1 & [...] > I simply answered the more general question: "how do I keep a unix > process alive after I log out?". It was instructive, yes, but note that processes designed to become a daemon just do this nohup trickery (aka "detaching from the controlling terminal") themselves. Emacs does, when started with the --daemon option. In general it is better to do the last (whenever the program provides such an option) since the program may want to do special things when run in daemon mode (in Emacs, for example, there is the Lisp function `daemonp', so you might take decisions in your .emacs initialization file based on that). Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLW+6HBcgs9XrR2kYRAj32AJ0fi+eYVwZaDlQ0Puzh4UGFoepTZgCfS3on OXWg+MpHT8VY/+Vx7R8pa4Y=3D =3DE2tu -----END PGP SIGNATURE-----