aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";
};
};