Opened 12 years ago

#676 closed defect (Fixed)

tor- fails to start after log rotation

Reported by: gentoosiast Owned by:
Priority: Low Milestone:
Component: Applications/Tor bundles/installation Version:
Severity: Keywords:
Cc: gentoosiast, nickm, phobos, arma Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


After tor log file has been rotated by logrotate utility, tor fails to start.

Steps to Reproduce:

  1. Start tor daemon
  2. Wait until log file fill ups and log rotation happens
  3. See that tor isn't functioning anymore

It happens because logrotate sets default ownership on newly created /var/log/tor.log - root:wheel. tor daemon
runs under tor:tor credentials, so it can't open its own log file and fails to start.

Solution: add "create 0640 tor tor" to contrib/

[Automatically added by flyspray2trac: Operating System: Other Linux]

Child Tickets

Change History (3)

comment:1 Changed 12 years ago by arma

Fix committed as part of r15404.

Andrew, can you check whether this breaks the rpm build and operation? It
looks like our rpm spec file brings in this file, right? How could it have
worked before?

comment:2 Changed 12 years ago by arma

I'm going to assume that means this is solved. Please send us mail or reopen
the bug if not. :)

comment:3 Changed 12 years ago by arma

flyspray2trac: bug closed.

Note: See TracTickets for help on using tickets.