Ver. 2.0.3 Daemon stop not working - client/webui

Support for Deluge on Apple Mac OS
Post Reply
cappy
Member
Member
Posts: 14
Joined: Sun Sep 10, 2017 7:25 am

Ver. 2.0.3 Daemon stop not working - client/webui

Post by cappy »

I am finding that neither deluge / deluge-GTK / webui connection mangers stop the daemon.

I am currently resorting to running and terminating the deluged in a terminal with ctrl-c and then re-running deluged command.

I am sure there is a better way to restart daemon after making config changes?
undercash
New User
New User
Posts: 3
Joined: Wed Mar 21, 2018 12:41 am

Re: Ver. 2.0.3 Daemon stop not working - client/webui

Post by undercash »

same here on a brand new ubuntu 20.04
mhertz
Moderator
Moderator
Posts: 2182
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Ver. 2.0.3 Daemon stop not working - client/webui

Post by mhertz »

Yeah, there's a bug in the webui connection-manager for close-daemon, but the one in GTK-UI I just tested working, both here in latest v2.0.5, and also checked v2.0.3, as per this thread's title, on an ubuntu VM, so there's that. Alternatively can use the consoleUI which features a 'halt' command, so 'deluge-console halt' cleanly stops the daemon. A small python client script can be made to stop daemon also, but why bother when deluge-console etc works. Only thing not stopable, is the webUI - I thought I remembered an web-API function read about in API-docs, and did mess with it through curl as wanted post a script cleanly closing it(just for others possibly interessted), but for one, there's a bug, as per the webUI stop-daemon bug, as using same API-call regardless, and second, I see it is for killing deluged actually, not deluge-web, just the name in API 'web.stop_daemon', confused me initially. Anyway, that doesn't have a stop command anywhere, but also isn't an issue killing, as just webserver interface for deuged, so I just run 'pkill deluge-web' for that, without issue.

You could always run through a service of-course, like default systemd-service files shipped with the install package, so you can stop/start/restart at will through systemctl/service-manager.

Little longer than I anticipated, for such question, sorry for wordyness :)
Post Reply