Merge pull request #24843 from mayflower/smokeping_service

smokeping service: restart on-failure
This commit is contained in:
Jörg Thalheim 2017-04-13 11:27:28 +02:00 committed by GitHub
commit 9223fde9f3

View File

@ -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