unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Moeller <bootsarehax@gmail.com>
To: 16507@debbugs.gnu.org
Subject: bug#16507: 24.3; systemd unit for a GNU Emacs daemon
Date: Mon, 20 Jan 2014 13:34:51 +0100	[thread overview]
Message-ID: <8738ki4ys4.fsf@geometryfactory.com> (raw)

systemd provides an easy way to set-up a per-user Emacs daemon and there
are several unit files floating around the web. One that works is:

  /etc/systemd/system/emacs@.service
  ----------------------------------
  [Unit]
  Description=GNU Emacs: the extensible, self-documenting text editor
  
  [Service]
  Type=forking
  ExecStart=/usr/bin/emacs --daemon
  ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))"
  Restart=always
  User=%i
  
  [Install]
  WantedBy=multi-user.target

It would be helpful to include this with the default GNU Emacs, so
users don't need to maintain their own files.

The above file would need some configuration through configure to set
the install path correctly and there should be an option to enable or
disable installing it via --with-systemd.





             reply	other threads:[~2014-01-20 12:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20 12:34 Philipp Moeller [this message]
2014-01-20 16:58 ` bug#16507: 24.3; systemd unit for a GNU Emacs daemon Andreas Schwab
2014-01-20 17:05   ` Glenn Morris
2014-01-20 18:53 ` Ted Zlatanov
2014-01-20 20:25   ` Stefan Monnier
2014-01-20 21:03     ` Nathan Trapuzzano
2014-01-20 22:36     ` Mark Oteiza
2014-12-03 19:39 ` bug#16507: [RFC] Add a systemd service file for dealing with emacs --daemon Rüdiger Sonderfeld
2014-12-03 21:08   ` Romain Francoise
2014-12-03 21:16   ` joakim
     [not found]   ` <87iohstp9m.fsf@kima.orebokech.com>
2014-12-03 21:44     ` Rüdiger Sonderfeld
2014-12-03 22:08     ` Ulrich Mueller
     [not found]     ` <21631.35293.852427.367195@a1i15.kph.uni-mainz.de>
2014-12-04  0:18       ` Rüdiger Sonderfeld
     [not found]       ` <5628178.gi3dgk9OHo@descartes>
2014-12-04  2:57         ` Drew Adams
2014-12-04  6:26         ` Ulrich Mueller
2014-12-04  3:00   ` Glenn Morris
     [not found]   ` <pmvblsrueb.fsf@fencepost.gnu.org>
2014-12-05 17:26     ` Rüdiger Sonderfeld
2014-12-08 17:03       ` Glenn Morris
2014-12-08 18:51         ` Stefan Monnier
2014-12-08 20:41           ` Eli Zaretskii
2014-12-09  2:47             ` Stefan Monnier
2016-11-13 23:52               ` bug#16507: 24.3; systemd unit for a GNU Emacs daemon Glenn Morris

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=8738ki4ys4.fsf@geometryfactory.com \
    --to=bootsarehax@gmail.com \
    --cc=16507@debbugs.gnu.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).