summaryrefslogtreecommitdiff
path: root/user/php7/php-fpm.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'user/php7/php-fpm.logrotate')
-rw-r--r--user/php7/php-fpm.logrotate13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/php7/php-fpm.logrotate b/user/php7/php-fpm.logrotate
new file mode 100644
index 000000000..ca87ba981
--- /dev/null
+++ b/user/php7/php-fpm.logrotate
@@ -0,0 +1,13 @@
+/var/log/php/*.log {
+ rotate 7
+ daily
+ missingok
+ notifempty
+ delaycompress
+ compress
+ dateext
+ sharedscripts
+ postrotate
+ /etc/init.d/php-fpm --ifstarted --quiet reopen
+ endscript
+}