Add a logrotate conf for php-fpm logs

This commit is contained in:
Daniel Berteaud 2017-07-12 18:38:29 +02:00
parent 6f64cb8c3f
commit 986e7b9ea7
1 changed files with 12 additions and 0 deletions

View File

@ -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
}