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