2016-11-13 15:46:31 -08: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 15:01:08 +02:00
|
|
|
Type=notify
|
2020-10-13 05:48:13 +02:00
|
|
|
ExecStart=emacs --fg-daemon
|
2020-12-14 17:59:58 +01: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 17:11:59 +02: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 15:46:31 -08:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|