summaryrefslogtreecommitdiffstats
path: root/contrib/nghttpx-logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/nghttpx-logrotate')
-rw-r--r--contrib/nghttpx-logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/nghttpx-logrotate b/contrib/nghttpx-logrotate
new file mode 100644
index 0000000..c715ced
--- /dev/null
+++ b/contrib/nghttpx-logrotate
@@ -0,0 +1,11 @@
+/var/log/nghttpx/*.log {
+ weekly
+ rotate 52
+ missingok
+ compress
+ delaycompress
+ notifempty
+ postrotate
+ [ -s /var/run/nghttpx.pid ] && kill -USR1 `cat /var/run/nghttpx.pid` 2> /dev/null || true
+ endscript
+}