From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.help Subject: Re: Running emacs deamon outside login Date: Sun, 24 Jan 2010 09:09:21 -0500 Message-ID: <20100124140921.GB390@srevilak.net> References: <20100122035249.98DE49BBF0@mxperim5.sea5.speakeasy.net> <20100123193851.GA389@srevilak.net> <20100124065359.GA20305@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LyciRD1jyfeSSjG0" X-Trace: ger.gmane.org 1264342287 12513 80.91.229.12 (24 Jan 2010 14:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2010 14:11:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 24 15:11:19 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 1NZ3BN-0005mK-SU for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 15:11:18 +0100 Original-Received: from localhost ([127.0.0.1]:57513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZ3BO-0002pK-Ph for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 09:11:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZ39k-0002Gs-Hl for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 09:09:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZ39f-0002Dv-7t for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 09:09:35 -0500 Original-Received: from [199.232.76.173] (port=55578 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZ39f-0002Do-3a for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 09:09:31 -0500 Original-Received: from mail7.sea5.speakeasy.net ([69.17.117.9]:43250) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZ39e-0007Di-SX for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 09:09:31 -0500 Original-Received: (qmail 24322 invoked from network); 24 Jan 2010 14:09:29 -0000 Original-Received: from pool-71-184-218-95.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[71.184.218.95]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 24 Jan 2010 14:09:28 -0000 Content-Disposition: inline In-Reply-To: <20100124065359.GA20305@tomas> User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:71420 Archived-At: --LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline >> 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?". >From: tomas@tuxteam.de >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 Fair enough. I had interpreted the OP's remark OP> On Linux, I've been wondering whether there's a good way to run OP> emacs deamon outside of my login process, so that I can log out OP> and in again and connect to the same emacs deamon process As "emacs --daemon won't outlive my login process", but perhaps that was the wrong interpretation. Steve --LyciRD1jyfeSSjG0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAktcVJEACgkQX7YJI4BuyDRDKwCcCUFm35AJOC16GS3SgumIlpme sLcAn2HMPuvCnDxP5jurSaZEhgJbaY9S =2IRw -----END PGP SIGNATURE----- --LyciRD1jyfeSSjG0--