summaryrefslogtreecommitdiff
path: root/extra/php/logrotate.d.php-fpm
diff options
context:
space:
mode:
Diffstat (limited to 'extra/php/logrotate.d.php-fpm')
-rw-r--r--extra/php/logrotate.d.php-fpm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/php/logrotate.d.php-fpm b/extra/php/logrotate.d.php-fpm
index 7a1ba2597..ac2d92a36 100644
--- a/extra/php/logrotate.d.php-fpm
+++ b/extra/php/logrotate.d.php-fpm
@@ -1,6 +1,8 @@
/var/log/php-fpm.log {
missingok
+ notifempty
+ delaycompress
postrotate
- /etc/rc.d/php-fpm logrotate >/dev/null || true
+ kill -USR1 `cat /run/php-fpm/php-fpm.pid 2>/dev/null` 2>/dev/null || true
endscript
}