Skip to content

Commit

Permalink
smokeping service: restart on-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fadenb committed Apr 12, 2017
1 parent 54bbf91 commit 13e9cc1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/services/networking/smokeping.nix
Expand Up @@ -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
Expand Down

0 comments on commit 13e9cc1

Please sign in to comment.