syslog-ng: fix reload service

This commit is contained in:
Izorkin 2018-08-15 22:02:50 +03:00
parent 0a17d08a97
commit 300fe1cc9a

View file

@ -88,7 +88,7 @@ in {
StandardOutput = "null";
Restart = "on-failure";
ExecStart = "${cfg.package}/sbin/syslog-ng ${concatStringsSep " " syslogngOptions}";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP ${pidFile}";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP `${pkgs.coreutils}/bin/cat ${pidFile}`";
};
};
};