diff options
Diffstat (limited to 'contrib/operator-tools/tor.logrotate.in')
-rw-r--r-- | contrib/operator-tools/tor.logrotate.in | 14 |
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 0000000000..6e75f80bf0 --- /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 +} |