1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-13 05:56:06 +01:00

services/emacs: Prevent deletion of socket file

When running a socket-activated emacs service, we don't want emacs to
remove the socket file after exiting, because then subsequent
invocations of `emacsclient` won't be able to use the socket to start
emacs.service again.
This commit is contained in:
Rodney Lorrimar 2021-05-30 12:40:58 +10:00 committed by Robert Helgesson
parent ac82c036d8
commit 5060262b79
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
4 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,7 @@
[Service]
ExecStart=@runtimeShell@ -l -c "@emacs@/bin/emacs --fg-daemon='%t/emacs/server'"
ExecStartPost=@coreutils@/bin/chmod --changes -w %t/emacs
ExecStopPost=@coreutils@/bin/chmod --changes +w %t/emacs
Restart=on-failure
SuccessExitStatus=15
Type=notify