(SystemD)+emacs service as part of new SystemD module
This commit is contained in:
12
SystemD/.config/systemd/user/emacs.service
Normal file
12
SystemD/.config/systemd/user/emacs.service
Normal 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
|
||||||
Reference in New Issue
Block a user