/var/log/nginx/*log { create 0644 {{ nginx_logrotate_period }} rotate {{nginx_logrotate_number}} missingok notifempty sharedscripts postrotate /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true endscript }