summarylogtreecommitdiffstats
path: root/logrotate.d.php-fpm
diff options
context:
space:
mode:
Diffstat (limited to 'logrotate.d.php-fpm')
-rw-r--r--logrotate.d.php-fpm8
1 files changed, 8 insertions, 0 deletions
diff --git a/logrotate.d.php-fpm b/logrotate.d.php-fpm
new file mode 100644
index 000000000000..2146ddd39ef0
--- /dev/null
+++ b/logrotate.d.php-fpm
@@ -0,0 +1,8 @@
+/var/log/php-fpm.log {
+ missingok
+ notifempty
+ delaycompress
+ postrotate
+ /bin/kill -SIGUSR1 `cat /run/php-fpm/php-fpm.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}