Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178975 - net-misc/tor-0.1.2.13: logrotate script fails if tor is not running
Summary: net-misc/tor-0.1.2.13: logrotate script fails if tor is not running
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-18 08:29 UTC by Remy Blank
Modified: 2007-05-31 09:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Blank 2007-05-18 08:29:09 UTC
If tor is not running, the logrotate script fails and makes cron send a failure mail:

  error: error running shared postrotate script for /var/log/tor/*.log

This can be fixed by applying the following patch to the tor logrotate configuration:

Index: tor
===================================================================
--- tor (revision 840)
+++ tor (working copy)
@@ -7,6 +7,6 @@
        notifempty
        sharedscripts
        postrotate
-               /etc/init.d/tor reload > /dev/null
+               /etc/init.d/tor reload > /dev/null || true
        endscript
 }
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2007-05-31 09:47:34 UTC
Will comit fixed version in a few minutes, as 0.1.2.14