From 5439590e63754909635ee45bfdd3a36f060703d2 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 5 Jul 2018 01:22:39 +0300 Subject: tor-scm (from net repo) --- packages/net-misc/tor/files/tor.logrotate.in.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/net-misc/tor/files/tor.logrotate.in.patch (limited to 'packages/net-misc/tor/files/tor.logrotate.in.patch') 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 + } -- cgit v1.2.3