help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running emacs deamon outside login


From: tomas
Subject: Re: Running emacs deamon outside login
Date: Sun, 24 Jan 2010 07:53:59 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

-----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 >/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ás

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLW+6HBcgs9XrR2kYRAj32AJ0fi+eYVwZaDlQ0Puzh4UGFoepTZgCfS3on
OXWg+MpHT8VY/+Vx7R8pa4Y=
=E2tu
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]