diff options
author | Tristan Helmich <tristan.helmich@gmail.com> | 2017-04-12 15:12:53 +0200 |
---|---|---|
committer | Tristan Helmich <tristan.helmich@gmail.com> | 2017-04-12 15:23:19 +0200 |
commit | 13e9cc15f147fd2f472a53c4b40588f48b73e0b5 (patch) | |
tree | 73c1e5793bfa22d41ba9461be73b43fb5dde1cb4 /nixos | |
parent | 54bbf91479762d0a9300e5871c4ef4dbadf22f52 (diff) |
smokeping service: restart on-failure
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/smokeping.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/smokeping.nix b/nixos/modules/services/networking/smokeping.nix index bac794745277..c5c131cb4c50 100644 --- a/nixos/modules/services/networking/smokeping.nix +++ b/nixos/modules/services/networking/smokeping.nix @@ -288,8 +288,11 @@ in }; systemd.services.smokeping = { wantedBy = [ "multi-user.target"]; - serviceConfig.User = cfg.user; - serviceConfig.PermissionsStartOnly = true; + serviceConfig = { + User = cfg.user; + PermissionsStartOnly = true; + Restart = "on-failure"; + }; preStart = '' mkdir -m 0755 -p ${smokepingHome}/cache ${smokepingHome}/data rm -f ${smokepingHome}/cropper |