Add a logrotate conf for php-fpm logs

tags/0.0.1_0.fc26_el5
Daniel Berteaud 7 years ago
parent 6f64cb8c3f
commit 986e7b9ea7
  1. 12
      root/etc/logrotate.d/smeserver-php-fpm

@ -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…
Cancel
Save