Merge pull request #24843 from mayflower/smokeping_service
smokeping service: restart on-failure
This commit is contained in:
commit
9223fde9f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user