From 4a5059ba54ae483647a8a56e295cf32c201f5d0f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 29 Jun 2016 12:36:54 +0200 Subject: emacs: added a systemd unit file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I finally got to fix the crash that I was having when trying to execute Emacs as a daemon. For this reason, now starting Emacs as a daemon during startup should be sensible enough. Signed-off-by: Miquel Sabaté Solà --- emacs/emacs.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 emacs/emacs.service (limited to 'emacs/emacs.service') diff --git a/emacs/emacs.service b/emacs/emacs.service new file mode 100644 index 0000000..d611118 --- /dev/null +++ b/emacs/emacs.service @@ -0,0 +1,11 @@ +[Unit] +Description=Emacs: the extensible, self-documenting text editor + +[Service] +Type=forking +ExecStart=/usr/bin/emacs --daemon +ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" +Restart=always + +[Install] +WantedBy=default.target -- cgit v1.2.3