mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
dspam service: restart on failure
This commit is contained in:
parent
fc84ee22df
commit
ccece1ca88
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,9 @@ in {
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
RuntimeDirectory = optional (cfg.domainSocket == defaultSock) "dspam";
|
RuntimeDirectory = optional (cfg.domainSocket == defaultSock) "dspam";
|
||||||
PermissionsStartOnly = true;
|
PermissionsStartOnly = true;
|
||||||
|
# DSPAM segfaults on just about every error
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "1s";
|
||||||
};
|
};
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue