diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-04-13 11:27:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 11:27:28 +0200 |
commit | 9223fde9f39c279e7f9a099b253f2a78625ef95b (patch) | |
tree | dac5fcb3607a986761f4382129c057d4b5216f9a /nixos | |
parent | d8e810e049e6211a9af39056900446a4c729261a (diff) | |
parent | 13e9cc15f147fd2f472a53c4b40588f48b73e0b5 (diff) |
Merge pull request #24843 from mayflower/smokeping_service
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 |