LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   What is starting this disabled service? (https://www.linuxquestions.org/questions/linux-general-1/what-is-starting-this-disabled-service-4175655589/)

lxs602 06-12-2019 01:39 PM

What is starting this disabled service?
 
I have disabled the bluetooth service using:

Quote:

systemctl disable bluetooth.service
and using systemd-manager, but it still starts at boot-time. I'm using Ubuntu 18.04 amd64.

If it is being activated by another service, how can I find and stop it?

I would like to stop it from loading in the first place, rather than stop it afterwards, for example by putting a line in /etc/rc.local.

I also want to activate it when needed, and so I would prefer not make bluetooth.service unexectuable or use similar hacks.

Thanks very much.

ferrari 06-12-2019 02:50 PM

To prevent it starting at all you could mask it with
Code:

systemctl mask bluetooth.service
However, to find other services that rely on it (and so start it) examine the dependency chain with
Code:

systemctl list-dependencies bluetooth --reverse

lxs602 06-14-2019 09:38 AM

Thanks. It turned out to be tlp. I edited the entry for it, according to the post by Hod here, to stop it from starting bluetooth:

https://superuser.com/questions/1447...-at-boot-linux

ferrari 06-14-2019 05:52 PM

Quote:

Thanks. It turned out to be tlp.
There you go. ;)

ondoho 06-15-2019 02:11 AM

Quote:

Originally Posted by lxs602 (Post 6005238)
Thanks. It turned out to be tlp. I edited the entry for it, according to the post by Hod here, to stop it from starting bluetooth:

https://superuser.com/questions/1447...-at-boot-linux

great!
Please mark your thread SOLVED now.


All times are GMT -5. The time now is 02:59 AM.