Merge pull request #54600 from volth/patch-301

nixos/collectd: restart on failure
This commit is contained in:
Jörg Thalheim 2019-01-26 11:23:02 +00:00 committed by GitHub
commit e9b5bd9813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,8 @@ in {
ExecStart = "${cfg.package}/sbin/collectd -C ${conf} -f";
User = cfg.user;
PermissionsStartOnly = true;
Restart = "on-failure";
RestartSec = 3;
};
preStart = ''