From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: where to start emacs --deamon in debian? Date: Sat, 5 Dec 2009 11:09:00 +0100 Message-ID: <03255AE7-4028-42DF-A5B3-32485C4491D4@Web.DE> References: <8crou6-3l4.ln1@news.jonasstein.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260007791 31622 80.91.229.12 (5 Dec 2009 10:09:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 10:09:51 +0000 (UTC) Cc: gnu-emacs-help@ftp.gnu.org To: Jonas Stein Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 11:09:44 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 1NGraA-0000Ve-He for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 11:09:42 +0100 Original-Received: from localhost ([127.0.0.1]:59427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGraA-000541-3B for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 05:09:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGrZj-00053o-3h for help-gnu-emacs@gnu.org; Sat, 05 Dec 2009 05:09:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGrZe-00051u-0x for help-gnu-emacs@gnu.org; Sat, 05 Dec 2009 05:09:14 -0500 Original-Received: from [199.232.76.173] (port=59030 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGrZd-00051j-U8 for help-gnu-emacs@gnu.org; Sat, 05 Dec 2009 05:09:09 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:42471) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGrZd-00016B-Ll for help-gnu-emacs@gnu.org; Sat, 05 Dec 2009 05:09:09 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:56122 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NGrZd-0004ZJ-8D for gnu-emacs-help@ftp.gnu.org; Sat, 05 Dec 2009 05:09:09 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NGrZc-000163-3H for gnu-emacs-help@ftp.gnu.org; Sat, 05 Dec 2009 05:09:09 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:34113) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGrZb-00015f-CW for gnu-emacs-help@ftp.gnu.org; Sat, 05 Dec 2009 05:09:07 -0500 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id 5D3DF146C6392; Sat, 5 Dec 2009 11:09:02 +0100 (CET) Original-Received: from [91.35.231.146] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (WEB.DE 4.110 #314) id 1NGrZW-0005XS-00; Sat, 05 Dec 2009 11:09:02 +0100 In-Reply-To: <8crou6-3l4.ln1@news.jonasstein.de> X-Mailer: Apple Mail (2.936) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19QqVBfHca26pEu2wDBrOfvCNDTbOoJveGp3oOM QO8BHdCy3YuIw4eLQuorU90WcBicawNPbdgvbhcrziNcsOXKwW eMPSCmFE5fcJyqIsduiA== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:70430 Archived-At: Am 05.12.2009 um 02:59 schrieb Jonas Stein: > what is the best way to start emacs --deamon in a debian (testing) =20 > system? > Should i put it in a selfmade init script to /etc/init.d or into /=20 > etc/profiles > or some elsewhere? A system file is not the appropriate choice (you won't own the =20 process). A script which is executed at your (personal) login time is =20= more suitable =96 but it must not launch GNU Emacs whenever a login =20 shell is initiated! This can be achieved by checking before whether =20 GNU Emacs is running, whether an environment variable is set (set when =20= GNU Emacs was launched as daemon the first time), whether a semaphore =20= file exists (created when GNU Emacs was launched as daemon the first =20 time)... -- Greetings Pete Genius may have its limitations, but stupidity is not thus handicapped. =96 Elbert Hubbard