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

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

Re: where to start emacs --deamon in debian?


From: Tim X
Subject: Re: where to start emacs --deamon in debian?
Date: Sun, 06 Dec 2009 11:30:39 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Jonas Stein <news@jonasstein.de> writes:

> Hi 
> what is the best way to start emacs --deamon in a debian (testing) system?
> Should i put it in a selfmade init script to /etc/init.d or into 
> /etc/profiles 
> or some elsewhere?
>
> kind regards,
> Jonas
>
>

don't do it as a /etc/init.d script. This overly complicates things and
buys you very little. Remember that emacs daemon mode is not designed to
be a multi-user daemon, its a user daemon. 

My advice would be to put it in your ~/.bash_profile or ~/profile or
whatever script is run by your shell when you login. Another
alternative, if you run X, wold be to put it in your X startup script
(depends on what X environment your running). Just ensure your code
checks to make sure its not already running before you start it.

I find all such setups more hassle to setup and maintain than benefits
they provide. I just use emacsclient when I want an emacs
frame and have it setup such that if emacs is not running, it will start
it up in daemon mode. I'm runing the CVS version and this seems to be
the efault behavior anyway, but I'm not sure if that is also the case
with the released version.

Tim

-- 
tcross (at) rapttech dot com dot au


reply via email to

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