Enable support for Emacs versions without --fg-daemon

This commit is contained in:
Anthony Rose 2020-07-11 18:40:15 +01:00
parent 8a1c66069c
commit 7c55bedd58

View file

@ -7,8 +7,8 @@ Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service] [Service]
Type=simple Type=forking
ExecStart={{ prefix }}/bin/emacs --fg-daemon ExecStart={{ prefix }}/bin/emacs --daemon
ExecStop={{ prefix }}/bin/emacsclient --eval "(kill-emacs)" ExecStop={{ prefix }}/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure Restart=on-failure