syslog-ng: fix reload service

This commit is contained in:
Izorkin 2018-08-16 08:13:36 +03:00
parent 300fe1cc9a
commit e4f4589186

View File

@ -85,10 +85,11 @@ in {
after = [ "multi-user.target" ]; # makes sure hostname etc is set
serviceConfig = {
Type = "notify";
PIDFile = pidFile;
StandardOutput = "null";
Restart = "on-failure";
ExecStart = "${cfg.package}/sbin/syslog-ng ${concatStringsSep " " syslogngOptions}";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP `${pkgs.coreutils}/bin/cat ${pidFile}`";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
};
};
};