Rotate all php version logs

This commit is contained in:
Daniel Winzen
2020-02-05 17:59:34 +01:00
parent 6917ffcae0
commit 05cd5b0774
2 changed files with 8 additions and 11 deletions

8
etc/logrotate.d/php-fpm Normal file
View File

@ -0,0 +1,8 @@
/var/log/php*-fpm*.log {
rotate 1
daily
missingok
notifempty
compress
delaycompress
}

View File

@ -1,11 +0,0 @@
/var/log/php7.3-fpm*.log {
rotate 1
daily
missingok
notifempty
compress
delaycompress
postrotate
/usr/lib/php/php7.3-fpm-reopenlogs
endscript
}