From ccece1ca88cac4f665cb956164de48eadd2c3907 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov <ab@fmap.me> Date: Thu, 11 Feb 2016 13:46:33 +0300 Subject: [PATCH] dspam service: restart on failure --- nixos/modules/services/mail/dspam.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/mail/dspam.nix b/nixos/modules/services/mail/dspam.nix index 10352ba6abcc..f18fd489f23d 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 = ''