vnstat: provide full path of "kill" in ExecReload

This commit is contained in:
Jörg Thalheim 2017-02-21 09:24:56 +00:00
parent 2cc4703a2d
commit 0338817f62

View File

@ -32,7 +32,7 @@ in {
preStart = "chmod 755 /var/lib/vnstat"; preStart = "chmod 755 /var/lib/vnstat";
serviceConfig = { serviceConfig = {
ExecStart = "${pkgs.vnstat}/bin/vnstatd -n"; ExecStart = "${pkgs.vnstat}/bin/vnstatd -n";
ExecReload = "kill -HUP $MAINPID"; ExecReload = "${pkgs.procps}/bin/kill -HUP $MAINPID";
ProtectHome = true; ProtectHome = true;
PrivateDevices = true; PrivateDevices = true;
PrivateTmp = true; PrivateTmp = true;