how to stop from deluge from loading at boot

General support for problems installing or using Deluge
fred44nl
Member
Member
Posts: 24
Joined: Mon Feb 20, 2017 10:59 am

how to stop from deluge from loading at boot

Post 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 ??
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: how to stop from deluge from loading at boot

Post 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 ;)
fred44nl
Member
Member
Posts: 24
Joined: Mon Feb 20, 2017 10:59 am

Re: how to stop from deluge from loading at boot

Post 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 ??
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: how to stop from deluge from loading at boot

Post 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
fred44nl
Member
Member
Posts: 24
Joined: Mon Feb 20, 2017 10:59 am

Re: how to stop from deluge from loading at boot

Post by fred44nl »

"systemctl list-unit-files --state=enabled" says:
deluge-web.service enabled
"systemctl list-unit-files --state=disabled" says:
deluged.service disabled
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: how to stop from deluge from loading at boot

Post 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.

Code: Select all

sudo systemctl disable deluge-web
If wanting it also stopped from current session:

Code: Select all

sudo systemctl stop deluge-web
Last edited by mhertz on Thu Aug 02, 2018 5:19 pm, edited 1 time in total.
fred44nl
Member
Member
Posts: 24
Joined: Mon Feb 20, 2017 10:59 am

Re: how to stop from deluge from loading at boot

Post by fred44nl »

ok, thank you
fred44nl
Member
Member
Posts: 24
Joined: Mon Feb 20, 2017 10:59 am

Re: how to stop from deluge from loading at boot

Post 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 :)
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: how to stop from deluge from loading at boot

Post 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.
fred44nl
Member
Member
Posts: 24
Joined: Mon Feb 20, 2017 10:59 am

Re: how to stop from deluge from loading at boot

Post 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 :)
Post Reply