We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sudo vim /etc/logrotate.d/ffunc
/etc/nginx/logs/error.log { rotate 7 size 5k dateext dateformat -%Y-%m-%d missingok compress sharedscripts postrotate test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid` endscript }
sudo logrotate /etc/logrotate.d/ffun
Reference