(SystemD)+emacs service as part of new SystemD module

This commit is contained in:
2021-03-25 09:21:24 +00:00
parent 2f0734b6f2
commit 3d08210053

View File

@@ -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