From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: where to start emacs --deamon in debian? Date: Sun, 06 Dec 2009 11:30:39 +1100 Organization: Rapt Technologies Message-ID: <87skbp9c5s.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260060114 4464 80.91.229.12 (6 Dec 2009 00:41:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 00:41:54 +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 Dec 06 01:41:47 2009 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 1NH5C6-0002yn-RB for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 01:41:47 +0100 Original-Received: from localhost ([127.0.0.1]:44917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH5C6-0003ex-Gy for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 19:41:46 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:nP/d8rxvD4slTWDnQmdQ7LFZ3HA= Original-Lines: 33 Original-NNTP-Posting-Host: 069547dc.news.astraweb.com Original-X-Trace: DXC=gJRQXXW@AQOmRUYobjn7jFL?0kYOcDh@JnmNjE4M:dlF; :jf9eidEkB3jG8S6WC]DK@ThRc@Zd6KN Original-Xref: news.stanford.edu gnu.emacs.help:175376 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:70452 Archived-At: Jonas Stein 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