diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-02-01 22:03:50 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-02-01 22:03:50 +0300 |
commit | 8d17ac7b3d1677392eaf590ac14bd5a45343a491 (patch) | |
tree | cbf4c42aa3c681f9d0f79416d6694dae86fb7b11 /modules/apps | |
parent | c4bd79eaab73cde521dad2d7e6b25c0b94391a58 (diff) | |
download | nixsap-8d17ac7b3d1677392eaf590ac14bd5a45343a491.tar.gz |
nginx: --kill-who=main in post log rotate
Diffstat (limited to 'modules/apps')
-rw-r--r-- | modules/apps/nginx.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/apps/nginx.nix b/modules/apps/nginx.nix index b8af241..f43216e 100644 --- a/modules/apps/nginx.nix +++ b/modules/apps/nginx.nix @@ -165,7 +165,8 @@ in { sharedscripts = true; daily = mkDefault true; create = mkDefault "0640 ${cfg.user} ${cfg.user}"; - postrotate = pkgs.writeBashScript "logrotate-nginx-postrotate" "systemctl kill -s SIGUSR1 nginx.service"; + postrotate = pkgs.writeBashScript "logrotate-nginx-postrotate" + "systemctl kill -s SIGUSR1 --kill-who=main nginx.service"; }; }; |