We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sudo vim /etc/logrotate.d/nginx
/etc/nginx/logs/*.log { daily missingok rotate 31 compress delaycompress notifempty create 640 myusername adm sharedscripts postrotate [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` endscript }
sudo logrotate /etc/logrotate.d/nginx