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

Details

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.
Change:

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

to

[ ! -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:  0.2.1.21-1

Loading...