summary refs log tree commit diff
path: root/nixos/modules/services/mail/dspam.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-11 13:46:33 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-11 14:03:34 +0300
commitccece1ca88cac4f665cb956164de48eadd2c3907 (patch)
tree3e2310556793d41d2b5bb5598170c7f370ae17a0 /nixos/modules/services/mail/dspam.nix
parentfc84ee22df2a6d14b638a93c0e802c033233f21e (diff)
downloadnixpkgs-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.nix3
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 = ''