diff --git a/nginx.logrotate b/nginx.logrotate index 454377a..cffa62e 100644 --- a/nginx.logrotate +++ b/nginx.logrotate @@ -7,7 +7,7 @@ compress sharedscripts postrotate - /usr/bin/systemctl kill --signal=SIGUSR1 --kill-who=main nginx.service 2>/dev/null || true + /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true endscript }