summaryrefslogtreecommitdiff
path: root/packages/net-misc/tor/files/tor.logrotate.in.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-misc/tor/files/tor.logrotate.in.patch')
-rw-r--r--packages/net-misc/tor/files/tor.logrotate.in.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/net-misc/tor/files/tor.logrotate.in.patch b/packages/net-misc/tor/files/tor.logrotate.in.patch
new file mode 100644
index 0000000..083913f
--- /dev/null
+++ b/packages/net-misc/tor/files/tor.logrotate.in.patch
@@ -0,0 +1,20 @@
+Source: Gentoo (bug #178975)
+Upstream: no
+Reason: Logrotate script fails if Tor is not running. This should really go
+ upstream.
+
+diff -ruN tor-0.2.5.10.orig/contrib/operator-tools/tor.logrotate.in tor-0.2.5.10/contrib/operator-tools/tor.logrotate.in
+--- tor-0.2.5.10.orig/contrib/operator-tools/tor.logrotate.in 2014-06-27 23:45:19.000000000 +0200
++++ tor-0.2.5.10/contrib/operator-tools/tor.logrotate.in 2014-11-01 09:06:46.466585311 +0100
+@@ -6,9 +6,9 @@
+ missingok
+ notifempty
+ # you may need to change the username/groupname below
+- create 0640 _tor _tor
++ create 0640 tor tor
+ sharedscripts
+ postrotate
+- /etc/init.d/tor reload > /dev/null
++ /etc/init.d/tor reload > /dev/null || true
+ endscript
+ }