Add a logrotate conf for php-fpm logs
This commit is contained in:
parent
6f64cb8c3f
commit
986e7b9ea7
|
@ -0,0 +1,12 @@
|
|||
/var/log/php/*/*.log {
|
||||
missingok
|
||||
notifempty
|
||||
sharedscripts
|
||||
delaycompress
|
||||
postrotate
|
||||
/sbin/e-smith/service php-fpm reload >/dev/null 2>&1 || true
|
||||
/sbin/e-smith/service php56-php-fpm reload >/dev/null 2>&1 || true
|
||||
/sbin/e-smith/service php70-php-fpm reload >/dev/null 2>&1 || true
|
||||
/sbin/e-smith/service php71-php-fpm reload >/dev/null 2>&1 || true
|
||||
endscript
|
||||
}
|
Loading…
Reference in New Issue