Files
hosting/etc/logrotate.d/nginx
2019-09-07 12:21:00 +02:00

28 lines
518 B
Plaintext

/var/log/nginx/*.log {
daily
missingok
rotate 1
nocompress
delaycompress
notifempty
create 0640 www-data www-data
sharedscripts
postrotate
start-stop-daemon --stop --signal USR1 --quiet --pidfile /run/nginx.pid >/dev/null 2>&1
endscript
}
/home/*/logs/*.log {
daily
missingok
rotate 1
nocompress
delaycompress
notifempty
su root www-data
create 0640 www-data www-data
sharedscripts
postrotate
start-stop-daemon --stop --signal USR1 --quiet --pidfile /run/nginx.pid >/dev/null 2>&1
endscript
}