From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacs --daemon should provide a way to get its process id Date: Sat, 01 Nov 2008 21:55:56 -0400 Message-ID: References: <18699.23113.985700.25955@a1ihome1.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225590976 15829 80.91.229.12 (2 Nov 2008 01:56:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2008 01:56:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 02 02:57:18 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KwSDO-0007WQ-9V for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2008 02:57:18 +0100 Original-Received: from localhost ([127.0.0.1]:56145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwSCH-00038u-HQ for ged-emacs-devel@m.gmane.org; Sat, 01 Nov 2008 21:56:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwSCC-00038U-NB for emacs-devel@gnu.org; Sat, 01 Nov 2008 21:56:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwSC7-00035H-Bt for emacs-devel@gnu.org; Sat, 01 Nov 2008 21:56:03 -0400 Original-Received: from [199.232.76.173] (port=40655 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwSC7-000357-4K for emacs-devel@gnu.org; Sat, 01 Nov 2008 21:55:59 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:33610 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwSC6-0004ST-OO for emacs-devel@gnu.org; Sat, 01 Nov 2008 21:55:58 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgEAAamDElMCqyo/2dsb2JhbACBdscXgk+BA4EP X-IronPort-AV: E=Sophos;i="4.33,528,1220241600"; d="scan'208";a="29214442" Original-Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 01 Nov 2008 21:55:56 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0EE08804B; Sat, 1 Nov 2008 21:55:56 -0400 (EDT) In-Reply-To: <18699.23113.985700.25955@a1ihome1.kph.uni-mainz.de> (Ulrich Mueller's message of "Fri, 31 Oct 2008 20:19:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105248 Archived-At: > I've played around with "emacs --daemon" and different ways of > starting/stopping it, as a user and also as a system service (managed > by OpenRC's "start-stop-daemon"). What seems to be missing is an easy > way to get the process id of the daemon. You can use the --eval argument to make the daemon write its (emacs-pid) to some file. I think that'll be enough for now. Stefan