August
13
Nginx log rotation – empty logs after rotation [FIXED]
Need to update file /etc/logrotate.d/nginx
and replace the line:
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
to:
service nginx reload >/dev/null 2>&1