Files
php/templates/php-fpm.logrotate.j2

24 lines
474 B
Django/Jinja

daily
rotate 31
compress
compresscmd /bin/bzip2
uncompresscmd /bin/bunzip2
compressoptions -9
compressext .bz2
missingok
dateext
dateformat -%Y%m%d-%s
dateyesterday
notifempty
sharedscripts
su root adm
/var/log/php/*/*-slow.log
/var/log/php/*/*-errors.log
/var/log/php/*/*/php-slow.log
/var/log/php/*/*/php-errors.log
{
postrotate
if [ -d /run/systemd/system ]; then systemctl kill -s HUP rsyslog.service; else invoke-rc.d rsyslog rotate > /dev/null; fi
endscript
}