Page 1 of 1

WebUI is not stopped when Deluge is stopped via kill

Posted: Sat Dec 01, 2007 5:00 pm
by compunerd632
I'm trying to run Deluge as a daemon so that I can have a server to automatically download torrents for me. I have vnc starting at boot so that there is an X server for Deluge to connect to. I have mostly written an init script to handle the starting and stopping of Deluge, but have run into one problem. When I use kill to stop Deluge, Deluge appears to shutdown properly, but it doesn't shutdown the WebUI server. Then, the next time I try to start Deluge it fails because there is already a server running on the port it is trying to use. Is this something that can be fixed, or do I just need to find some way of detecting the PID of the process it starts to run the WebUI so I can kill it myself?

Re: WebUI is not stopped when Deluge is stopped via kill

Posted: Sat Dec 01, 2007 6:20 pm
by mvoncken
I don't have time to look into it now.

But here's the (apperrently non-working) kill-code used by deluge.
line 81 to 86.

http://codebrowse.launchpad.net/~mvonck ... nit__.py-s