dspam service: restart on failure

This commit is contained in:
Nikolay Amiantov 2016-02-11 13:46:33 +03:00
parent fc84ee22df
commit ccece1ca88

View File

@ -109,6 +109,9 @@ in {
Group = cfg.group;
RuntimeDirectory = optional (cfg.domainSocket == defaultSock) "dspam";
PermissionsStartOnly = true;
# DSPAM segfaults on just about every error
Restart = "on-failure";
RestartSec = "1s";
};
preStart = ''