aboutsummaryrefslogtreecommitdiff
path: root/contrib/operator-tools/tor.logrotate.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/operator-tools/tor.logrotate.in')
-rw-r--r--contrib/operator-tools/tor.logrotate.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/operator-tools/tor.logrotate.in b/contrib/operator-tools/tor.logrotate.in
new file mode 100644
index 000000000..6e75f80bf
--- /dev/null
+++ b/contrib/operator-tools/tor.logrotate.in
@@ -0,0 +1,14 @@
+@LOCALSTATEDIR@/log/tor/*log {
+ daily
+ rotate 5
+ compress
+ delaycompress
+ missingok
+ notifempty
+ # you may need to change the username/groupname below
+ create 0640 _tor _tor
+ sharedscripts
+ postrotate
+ /etc/init.d/tor reload > /dev/null
+ endscript
+}