From b4c9d7d817eef84b13d0502a05930795010e8f6f Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Thu, 21 May 2026 15:59:56 -0400 Subject: [PATCH] Fix nginx postrotate The postrotate action of nginx's lograte wasn't being run, because there isn't a `/etc/init.d/nginx` anymore (unclear if it's because we've updated nginx). Logrotate would still rename the logs, but nginx would continue writing to the renamed file, thus continuing to use access.log.1. Changing it to `nginx-debug` fixes the issue. Idea from https://serverfault.com/questions/823725/logrotate-not-writing-logs-to-correct-file --- Docker/nginx.logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docker/nginx.logrotate b/Docker/nginx.logrotate index cae60eb61..88658eb24 100644 --- a/Docker/nginx.logrotate +++ b/Docker/nginx.logrotate @@ -13,7 +13,7 @@ fi \ endscript postrotate - if /etc/init.d/nginx status > /dev/null ; then \ + if /etc/init.d/nginx-debug status > /dev/null ; then \ /usr/share/docassemble/webapp/restart-nginx.sh ; \ fi endscript