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
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
|
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
Saturday, 03 October 2009, 21:05 GMT
Reason for closing: Fixed
Additional comments about closing: transmission-cli-1.75-1
This is a safer version:
while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
FS#15476andFS#13355untested because I don't use this.