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 ??
how to stop from deluge from loading at boot
Re: how to stop from deluge from loading at boot
sudo systemctl disable deluged
Start/stop on demand: sudo systemctl start/stop deluged (or simply deluged/deluge-console halt(or pkill deluged))
man systemctl
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
yes, ok, but deluged was never enabled with systemctlmhertz wrote:sudo systemctl disable deluged
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
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
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
"systemctl list-unit-files --state=enabled" says:
deluge-web.service enabled
"systemctl list-unit-files --state=disabled" says:
deluged.service disabled
deluge-web.service enabled
"systemctl list-unit-files --state=disabled" says:
deluged.service disabled
Re: how to stop from deluge from loading at boot
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:
Code: Select all
sudo systemctl disable deluge-web
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.
Re: how to stop from deluge from loading at boot
ok, thank you
Re: how to stop from deluge from loading at boot
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
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
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.
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
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
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