FS#13355 - [transmission] service restart fails

Attached to Project: Arch Linux
Opened by Massimiliano Torromeo (mtorromeo) - Wednesday, 18 February 2009, 10:01 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 03 October 2009, 21:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Alexander Fehr (pizzapunk)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The "/etc/rc.d/transmissiond restart" command fails to start the service because the restart is implemented as a "stop; sleep 1; start", but the daemon takes way more than 1 second to stop.
This issue is probably affecting other services that have long stop times.

I resolved the issue by replacing the simple "sleep 1" command with this line:
while [ -d "/proc/$PID" ]; do sleep 1; done

Additional info:
transmission-cli (every version)

Steps to reproduce:
Issue the restart command ( "/etc/rc.d/transmissiond restart" ) with some big torrents in queue.
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 03 October 2009, 21:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  transmission-cli-1.75-1
Comment by JM (fijam) - Saturday, 21 March 2009, 17:17 GMT
confirming, please assign to the package owner
Comment by Massimiliano Torromeo (mtorromeo) - Sunday, 22 March 2009, 14:13 GMT
I modified my init script again.
This is a safer version:

while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
Comment by Florian Pritz (bluewind) - Saturday, 03 October 2009, 20:07 GMT
Patch for  FS#15476  and  FS#13355 
untested because I don't use this.

Loading...