aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-02-01 22:03:50 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-02-01 22:03:50 +0300
commit8d17ac7b3d1677392eaf590ac14bd5a45343a491 (patch)
treecbf4c42aa3c681f9d0f79416d6694dae86fb7b11 /modules
parentc4bd79eaab73cde521dad2d7e6b25c0b94391a58 (diff)
downloadnixsap-8d17ac7b3d1677392eaf590ac14bd5a45343a491.tar.gz
nginx: --kill-who=main in post log rotate
Diffstat (limited to 'modules')
-rw-r--r--modules/apps/nginx.nix3
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";
};
};