diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-02-11 13:46:33 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-02-11 14:03:34 +0300 |
commit | ccece1ca88cac4f665cb956164de48eadd2c3907 (patch) | |
tree | 3e2310556793d41d2b5bb5598170c7f370ae17a0 /nixos/modules/services/mail/dspam.nix | |
parent | fc84ee22df2a6d14b638a93c0e802c033233f21e (diff) | |
download | nixpkgs-ccece1ca88cac4f665cb956164de48eadd2c3907.tar nixpkgs-ccece1ca88cac4f665cb956164de48eadd2c3907.tar.gz nixpkgs-ccece1ca88cac4f665cb956164de48eadd2c3907.tar.bz2 nixpkgs-ccece1ca88cac4f665cb956164de48eadd2c3907.tar.lz nixpkgs-ccece1ca88cac4f665cb956164de48eadd2c3907.tar.xz nixpkgs-ccece1ca88cac4f665cb956164de48eadd2c3907.tar.zst nixpkgs-ccece1ca88cac4f665cb956164de48eadd2c3907.zip |
dspam service: restart on failure
Diffstat (limited to 'nixos/modules/services/mail/dspam.nix')
-rw-r--r-- | nixos/modules/services/mail/dspam.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/dspam.nix b/nixos/modules/services/mail/dspam.nix index 10352ba6abc..f18fd489f23 100644 --- a/nixos/modules/services/mail/dspam.nix +++ b/nixos/modules/services/mail/dspam.nix @@ -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 = '' |