summaryrefslogtreecommitdiff
path: root/extra/php/logrotate.d.php-fpm
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-04 00:01:23 +0000
committerroot <root@rshg054.dnsready.net>2012-06-04 00:01:23 +0000
commit1e6588d64f084decf287a58b7ff93ff0ce4d0446 (patch)
tree29bf5b8778e1eb67871d9e6e8bb6e205bdde5db7 /extra/php/logrotate.d.php-fpm
parent80053e720288b6205a59c52c1b31c14a0f830989 (diff)
Mon Jun 4 00:01:23 UTC 2012
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
}