git.iko.soy/typeable/nixpkgs
on master help sign in
syslog-ng: fix reload service
commite4f45891866976f4df72d9ab635659b6e8c380e1 authorIzorkin <Izorkin@gmail.com> dateThu 16 Aug 2018, 08:13 (8 years ago) parent300fe1c
1 file changed+2−1
nixos/modules/services/logging/syslog-ng.nix+2−1
nixos/modules/services/logging/syslog-ng.nix+2−1
@@ -85,10 +85,11 @@ in {
8585 after = [ "multi-user.target" ]; # makes sure hostname etc is set
8686 serviceConfig = {
8787 Type = "notify";
88+ PIDFile = pidFile;
8889 StandardOutput = "null";
8990 Restart = "on-failure";
9091 ExecStart = "${cfg.package}/sbin/syslog-ng ${concatStringsSep " " syslogngOptions}";
91− ExecReload = "${pkgs.coreutils}/bin/kill -HUP `${pkgs.coreutils}/bin/cat ${pidFile}`";
92+ ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
9293 };
9394 };
9495 };