aboutsummaryrefslogtreecommitdiff
path: root/tor/logrotate.tor
diff options
context:
space:
mode:
Diffstat (limited to 'tor/logrotate.tor')
-rw-r--r--tor/logrotate.tor15
1 files changed, 15 insertions, 0 deletions
diff --git a/tor/logrotate.tor b/tor/logrotate.tor
new file mode 100644
index 0000000..0b8f128
--- /dev/null
+++ b/tor/logrotate.tor
@@ -0,0 +1,15 @@
+/var/log/tor/*log {
+ su @USER@ @GROUP@
+ daily
+ rotate 5
+ compress
+ delaycompress
+ missingok
+ notifempty
+ create 0644 tor tor
+ sharedscripts
+ postrotate
+ /etc/rc.d/rc.tor reload > /dev/null
+ endscript
+}
+