FS#19241 - [deluge] stopping deluge-web daemon doesn't work
Attached to Project:
Arch Linux
Opened by Jonathan Liu (net147) - Sunday, 25 April 2010, 08:32 GMT
Last edited by Ionut Biru (wonder) - Saturday, 01 May 2010, 15:28 GMT
Opened by Jonathan Liu (net147) - Sunday, 25 April 2010, 08:32 GMT
Last edited by Ionut Biru (wonder) - Saturday, 01 May 2010, 15:28 GMT
|
Details
Description:
Stopping the deluge-web daemon after starting it doesn't work. Checking /var/run/deluge-web.pid shows that the saved daemon PID is different from the running PID. Additional info: * deluge 1.2.3-4 Steps to reproduce: * /etc/rc.d/deluged start * /etc/rc.d/deluge-web start * /etc/rc.d/deluge-web stop |
This task depends upon
echo $(pgrep -u $DELUGE_USER deluge-web) > /var/run/deluge-web.pid
echo $(pgrep -u $DELUGE_USER deluged) > /var/run/deluged.pid
There seems to be a race condition in both /etc/rc.d/deluged and /etc/rc.d/deluge-web between starting the daemon and getting the PID.
Adding a 1 second sleep before getting the PID resolves the issue for me.