dspam service: run after postgresql to prevent segfaults
This commit is contained in:
@@ -104,6 +104,7 @@ in {
|
|||||||
systemd.services.dspam = {
|
systemd.services.dspam = {
|
||||||
description = "dspam spam filtering daemon";
|
description = "dspam spam filtering daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "postgresql.service" ];
|
||||||
restartTriggers = [ cfgfile ];
|
restartTriggers = [ cfgfile ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
@@ -114,7 +115,7 @@ in {
|
|||||||
RuntimeDirectoryMode = optional (cfg.domainSocket == defaultSock) "0750";
|
RuntimeDirectoryMode = optional (cfg.domainSocket == defaultSock) "0750";
|
||||||
PermissionsStartOnly = true;
|
PermissionsStartOnly = true;
|
||||||
# DSPAM segfaults on just about every error
|
# DSPAM segfaults on just about every error
|
||||||
Restart = "on-failure";
|
Restart = "on-abort";
|
||||||
RestartSec = "1s";
|
RestartSec = "1s";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user