3
0
Fork 0
forked from mirrors/nixpkgs

nixos/collectd: restart on failure

`collectd' might fail because of a failure in any of numerous plugins.
For example `virt' plugin sometimes fails if `collectd' is started before `libvirtd'
This commit is contained in:
volth 2019-01-26 00:31:32 +00:00 committed by GitHub
parent 9310fc3e13
commit b3c5e9ac1e
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 = ''