Page 1 of 2
how to stop from deluge from loading at boot
Posted: Thu Aug 02, 2018 8:47 am
by fred44nl
hi,
I have installed Deluge successfully on my Debian machine.
but I do not use it all the time, so I would like is not to start automatically, after re-booting.
when I do "sudo systemctl status deluged" it says:
"Loaded: loaded (/etc/systemd/system/deluged.service; disabled; vendor preset: enabled)"
so, how do I stop Deluge from starting automatically ??
Re: how to stop from deluge from loading at boot
Posted: Thu Aug 02, 2018 9:35 am
by mhertz
sudo systemctl disable deluged
Start/stop on demand: sudo systemctl start/stop deluged (or simply deluged/deluge-console halt(or pkill deluged))
man systemctl

Re: how to stop from deluge from loading at boot
Posted: Thu Aug 02, 2018 9:45 am
by fred44nl
mhertz wrote:sudo systemctl disable deluged
yes, ok, but deluged was never enabled with systemctl
and doing a systemctl disable did not help.
could this come from deluge-web.service starting at boot ??
Re: how to stop from deluge from loading at boot
Posted: Thu Aug 02, 2018 12:33 pm
by mhertz
Sorry, I thought debian like most distros(thankfully not mine) always enables all services of the apps you install, so would be enabled by default. There are two services with deluge; deluged and deluge-web and if both these are disabled by you and still restart at next boot, then sorry I don't know how they could? ('disable' doesn't stop a service from current running session and needs 'stop' for that additionally)
You can check all set to start at boot with:
systemctl list-unit-files --state=enabled
Re: how to stop from deluge from loading at boot
Posted: Thu Aug 02, 2018 4:07 pm
by fred44nl
"systemctl list-unit-files --state=enabled" says:
deluge-web.service enabled
"systemctl list-unit-files --state=disabled" says:
deluged.service disabled
Re: how to stop from deluge from loading at boot
Posted: Thu Aug 02, 2018 5:11 pm
by mhertz
Yes, deluge-web is enabled and needs disabling by you manually. It has a 'wants' directive of 'deluged.service' so will run that as dependency even though that(deluged-service) isn't specifically enabled.
If wanting it also stopped from current session:
Re: how to stop from deluge from loading at boot
Posted: Thu Aug 02, 2018 5:18 pm
by fred44nl
ok, thank you
Re: how to stop from deluge from loading at boot
Posted: Wed Aug 14, 2019 8:36 am
by fred44nl
sorry to come back on this.
is there an easy way to avoid this dependency ??
I tried to edit /etc/systemd/system/deluge-web.service, but that did not help much

Re: how to stop from deluge from loading at boot
Posted: Wed Aug 14, 2019 1:38 pm
by mhertz
Hmm, but why would you want that, as the web-ui is a gateway to setup web-access to deluged?
Anyway, to answer your question, then yes, you can remove whatever you want from 'wants' or 'needs' in any systemd service-file and then to make the changes "apply" you need to run "sudo systemctl daemon-reload". The more propper way is make a drop-in file/dir but that's optional. However you then will not be able to access the webui and possibly get an error upon starting it.
Re: how to stop from deluge from loading at boot
Posted: Wed Aug 14, 2019 2:11 pm
by fred44nl
I don't use Deluge very often.
so when I reboot, I would stop deluged manually.
I did try to modify /etc/systemd/system/deluge-web.service before, but did not know I had to run "sudo systemctl daemon-reload" afterwards.
again, thank you
