diff options
author | volth <volth@webmaster.ms> | 2019-01-26 00:31:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 00:31:32 +0000 |
commit | b3c5e9ac1ea20a3b21568c618b7699571d9122f4 (patch) | |
tree | ede220db5736f11ebb1f66fc62b50b3c9360421f /nixos/modules/services/monitoring/collectd.nix | |
parent | 9310fc3e1345d35afec56e2ba3261f5f627576c6 (diff) | |
download | nixpkgs-b3c5e9ac1ea20a3b21568c618b7699571d9122f4.tar nixpkgs-b3c5e9ac1ea20a3b21568c618b7699571d9122f4.tar.gz nixpkgs-b3c5e9ac1ea20a3b21568c618b7699571d9122f4.tar.bz2 nixpkgs-b3c5e9ac1ea20a3b21568c618b7699571d9122f4.tar.lz nixpkgs-b3c5e9ac1ea20a3b21568c618b7699571d9122f4.tar.xz nixpkgs-b3c5e9ac1ea20a3b21568c618b7699571d9122f4.tar.zst nixpkgs-b3c5e9ac1ea20a3b21568c618b7699571d9122f4.zip |
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'
Diffstat (limited to 'nixos/modules/services/monitoring/collectd.nix')
-rw-r--r-- | nixos/modules/services/monitoring/collectd.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/collectd.nix b/nixos/modules/services/monitoring/collectd.nix index 6606980cdad..45e3312c0f4 100644 --- a/nixos/modules/services/monitoring/collectd.nix +++ b/nixos/modules/services/monitoring/collectd.nix @@ -88,6 +88,8 @@ in { ExecStart = "${cfg.package}/sbin/collectd -C ${conf} -f"; User = cfg.user; PermissionsStartOnly = true; + Restart = "on-failure"; + RestartSec = 3; }; preStart = '' |