netdata: started when service can be pinged
This commit is contained in:
parent
a7c9f34b0b
commit
7f025e2b34
|
@ -201,6 +201,8 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${cfg.package}/bin/netdata -P /run/netdata/netdata.pid -D -c /etc/netdata/netdata.conf";
|
ExecStart = "${cfg.package}/bin/netdata -P /run/netdata/netdata.pid -D -c /etc/netdata/netdata.conf";
|
||||||
ExecReload = "${pkgs.util-linux}/bin/kill -s HUP -s USR1 -s USR2 $MAINPID";
|
ExecReload = "${pkgs.util-linux}/bin/kill -s HUP -s USR1 -s USR2 $MAINPID";
|
||||||
|
ExecPostStart = ''while [ "$(netdatacli ping)" != pong ]; do sleep 0.5; done'';
|
||||||
|
|
||||||
TimeoutStopSec = 60;
|
TimeoutStopSec = 60;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
# User and group
|
# User and group
|
||||||
|
|
Loading…
Reference in a new issue