2016-11-13 23:46:31 +00:00
|
|
|
## If your Emacs is installed in a non-standard location, you may need
|
|
|
|
## to copy this file to a standard directory, eg ~/.config/systemd/user/ .
|
|
|
|
## If you install this file by hand, change the "Exec" lines below
|
|
|
|
## to use absolute file names for the executables.
|
|
|
|
[Unit]
|
|
|
|
Description=Emacs text editor
|
|
|
|
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
|
|
|
|
|
|
|
|
[Service]
|
2018-06-09 13:01:08 +00:00
|
|
|
Type=notify
|
2020-10-13 03:48:13 +00:00
|
|
|
ExecStart=emacs --fg-daemon
|
2020-12-14 16:59:58 +00:00
|
|
|
|
|
|
|
# Emacs will exit with status 15 after having received SIGTERM, which
|
|
|
|
# is the default "KillSignal" value systemd uses to stop services.
|
|
|
|
SuccessExitStatus=15
|
|
|
|
|
2019-07-21 15:11:59 +00:00
|
|
|
# The location of the SSH auth socket varies by distribution, and some
|
|
|
|
# set it from PAM, so don't override by default.
|
|
|
|
# Environment=SSH_AUTH_SOCK=%t/keyring/ssh
|
2016-11-13 23:46:31 +00:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|