nginx/nginx.logrotate
Felix Kaechele f53024b6fe forward-port log permissions fix from main branch
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
2021-06-01 20:23:23 -04:00

14 lines
243 B
Plaintext

/var/log/nginx/*.log {
create 0640 nginx root
daily
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}