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:
parent
ac82c036d8
commit
5060262b79
4 changed files with 13 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue