diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2018-08-16 18:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-16 18:11:52 +0200 |
commit | be34fdfa89f0896e75f236a5e8d0bd11889c20ef (patch) | |
tree | f6eebc17f5818a19526e3294a6397a92d27f5bf0 | |
parent | 5021944e7a5653859706f62c7da4a75861988ba1 (diff) | |
parent | e4f45891866976f4df72d9ab635659b6e8c380e1 (diff) | |
download | nixpkgs-be34fdfa89f0896e75f236a5e8d0bd11889c20ef.tar nixpkgs-be34fdfa89f0896e75f236a5e8d0bd11889c20ef.tar.gz nixpkgs-be34fdfa89f0896e75f236a5e8d0bd11889c20ef.tar.bz2 nixpkgs-be34fdfa89f0896e75f236a5e8d0bd11889c20ef.tar.lz nixpkgs-be34fdfa89f0896e75f236a5e8d0bd11889c20ef.tar.xz nixpkgs-be34fdfa89f0896e75f236a5e8d0bd11889c20ef.tar.zst nixpkgs-be34fdfa89f0896e75f236a5e8d0bd11889c20ef.zip |
Merge pull request #45078 from Izorkin/syslog-ng-reload-fix
syslog-ng: fix reload service
-rw-r--r-- | nixos/modules/services/logging/syslog-ng.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/logging/syslog-ng.nix b/nixos/modules/services/logging/syslog-ng.nix index 8466ff4630a..65e103ac2ba 100644 --- a/nixos/modules/services/logging/syslog-ng.nix +++ b/nixos/modules/services/logging/syslog-ng.nix @@ -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 ${pidFile}"; + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; }; }; }; |