Tag Info

New answers tagged


Replace: invoke-rc.d nginx reload >/dev/null 2>&1 With: [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` seems on newer versions of Nginx this works. I am running 1.9 versions.


Add a postrotate command before the final } eg: postrotate exec >> /var/log/logrotate.log date; echo 'completed' endscript This part is only executed (by /bin/sh) if the log file is actually rotated.

Top 50 recent answers are included