summarylogtreecommitdiffstats
path: root/logrotate.d.php-fpm
diff options
context:
space:
mode:
authorMickaël Thomas2016-01-03 22:24:55 +0100
committerMickaël Thomas2016-01-03 22:27:43 +0100
commitdc59ffcdf118e4884ef70599d3937839e5e5749e (patch)
treebb65886b14b4ab5b790c9b2eaf9fbc2bcefa936e /logrotate.d.php-fpm
downloadaur-dc59ffcdf118e4884ef70599d3937839e5e5749e.tar.gz
Initial commmit
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
+}