Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#17291 - [tor] change rc file to allow a graceful shutdown

Attached to Project: Arch Linux
Opened by Christian Sturm (Athaba) - Thursday, 26 November 2009, 15:50 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 03 January 2010, 11:05 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


It would be nice, if tor.rc could be changed to allow Tor to do a graceful shutdown.
The feature is easy to implement by adding an INT switch to the kill command in tor.rc.

[ ! -z "$PID" ] && kill $PID &> /dev/null


[ ! -z "$PID" ] && kill -INT $PID &> /dev/null

This only has an effect, if you are running Tor as relay. Have a look at Tors man page for more information.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 03 January 2010, 11:05 GMT
Reason for closing:  Implemented
Additional comments about closing: