nginx not rotating logs
in nginx-common package there's the script to rotate nginx logs but it does not work as intended:
it does rename the log but nginx keeps writing on that one.
this is because -USR1 signal doesn't seem to work, you have to use -HUP and then nginx will close and reopen logs files (without resetting uptime which is nice for detecting if webserver is stable or not) .
so i had to change my /etc/logrotate.
[ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
to make it properly rotate log files.
|no longer affects:||ubuntu|
|Changed in nginx:|
|status:||Incomplete → Fix Released|
|Changed in nginx (Ubuntu):|
|status:||New → Fix Released|
|Changed in nginx (Ubuntu Trusty):|
|status:||New → Confirmed|