Rotate all php version logs
This commit is contained in:
8
etc/logrotate.d/php-fpm
Normal file
8
etc/logrotate.d/php-fpm
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/var/log/php*-fpm*.log {
|
||||||
|
rotate 1
|
||||||
|
daily
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
}
|
@ -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
|
|
||||||
}
|
|
Reference in New Issue
Block a user