summaryrefslogtreecommitdiffstats
path: root/abs/core/php/logrotate.d.php-fpm
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 17:55:03 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 17:55:03 (GMT)
commit00b131694e084a6deb9caaca2d940c63b9990384 (patch)
tree08110bb4b818e23658ca7c64551d5ac83ff50ed1 /abs/core/php/logrotate.d.php-fpm
parentff0f7cee2dc2b420e257313fef663a3f78bbc800 (diff)
downloadlinhes_pkgbuild-00b131694e084a6deb9caaca2d940c63b9990384.zip
linhes_pkgbuild-00b131694e084a6deb9caaca2d940c63b9990384.tar.gz
linhes_pkgbuild-00b131694e084a6deb9caaca2d940c63b9990384.tar.bz2
php: 5.4.5
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
+}