Merge pull request #84748 from zupo/patch-1

Automatically restart netdata on failures
This commit is contained in:
Domen Kožar 2020-04-08 23:45:46 +02:00 committed by GitHub
commit 3f5dcd5232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,7 @@ in {
ExecStart = "${cfg.package}/bin/netdata -P /run/netdata/netdata.pid -D -c ${configFile}";
ExecReload = "${pkgs.utillinux}/bin/kill -s HUP -s USR1 -s USR2 $MAINPID";
TimeoutStopSec = 60;
Restart = "on-failure";
# User and group
User = cfg.user;
Group = cfg.group;