Skip to content

Commit

Permalink
Merge pull request #24843 from mayflower/smokeping_service
Browse files Browse the repository at this point in the history
smokeping service: restart on-failure
  • Loading branch information
Mic92 committed Apr 13, 2017
2 parents d8e810e + 13e9cc1 commit 9223fde
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 9223fde

Please sign in to comment.