unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs --daemon should provide a way to get its process id
Date: Sat, 01 Nov 2008 21:55:56 -0400	[thread overview]
Message-ID: <jwv4p2q51uu.fsf-monnier+emacs@gnu.org> (raw)
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")

> 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





  parent reply	other threads:[~2008-11-02  1:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-31 19:19 emacs --daemon should provide a way to get its process id Ulrich Mueller
2008-11-01 14:05 ` bwoster
2008-11-01 17:33   ` Ulrich Mueller
2008-11-02  1:55 ` Stefan Monnier [this message]
2008-11-02  2:18   ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv4p2q51uu.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=ulm@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).