aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/tor.logrotate.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/tor.logrotate.in b/contrib/tor.logrotate.in
new file mode 100644
index 0000000000..9dd64476bb
--- /dev/null
+++ b/contrib/tor.logrotate.in
@@ -0,0 +1,12 @@
+@LOCALSTATEDIR@/log/tor/*log {
+ daily
+ rotate 5
+ compress
+ delaycompress
+ missingok
+ notifempty
+ sharedscripts
+ postrotate
+ /etc/rc.d/init.d/tor reload > /dev/null
+ endscript
+}