From 3d082100539b666d95877f8189e548c90f97dc29 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 25 Mar 2021 09:21:24 +0000 Subject: (SystemD)+emacs service as part of new SystemD module --- SystemD/.config/systemd/user/emacs.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 SystemD/.config/systemd/user/emacs.service (limited to 'SystemD/.config/systemd/user/emacs.service') diff --git a/SystemD/.config/systemd/user/emacs.service b/SystemD/.config/systemd/user/emacs.service new file mode 100644 index 0000000..c410445 --- /dev/null +++ b/SystemD/.config/systemd/user/emacs.service @@ -0,0 +1,12 @@ +[Unit] +Description=Emacs + +[Service] +Type=forking +ExecStart=/usr/local/bin/emacs --bg-daemon=MAIN +ExecStop=/usr/local/bin/emacsclient --socket-name=MAIN --eval "(kill-emacs)" +Restart=on-failure +TimeoutStartSec=0 + +[Install] +WantedBy=default.target -- cgit v1.2.3-13-gbd6f