aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/varnishd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'main/varnish/varnishd.logrotate')
-rw-r--r--main/varnish/varnishd.logrotate38
1 files changed, 30 insertions, 8 deletions
diff --git a/main/varnish/varnishd.logrotate b/main/varnish/varnishd.logrotate
index 62ee60007a..e697e428f3 100644
--- a/main/varnish/varnishd.logrotate
+++ b/main/varnish/varnishd.logrotate
@@ -1,9 +1,31 @@
-/var/log/varnish/*.log {
- weekly
- rotate 10
- copytruncate
- delaycompress
- compress
- notifempty
- missingok
+/var/log/varnish/varnishncsa.log {
+ daily
+ rotate 31
+ copytruncate
+ dateext
+ dateyesterday
+ delaycompress
+ compress
+ notifempty
+ missingok
+
+ prerotate
+ /etc/init.d/varnishncsa -q status && /etc/init.d/varnishncsa -q flush
+ endscript
+}
+
+/var/log/varnish/varnishlog.log {
+ daily
+ rotate 31
+ copytruncate
+ dateext
+ dateyesterday
+ delaycompress
+ compress
+ notifempty
+ missingok
+
+ prerotate
+ /etc/init.d/varnishlog -q status && /etc/init.d/varnishlog -q flush
+ endscript
}