LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-12-2019, 01:39 PM   #1
lxs602
Member
 
Registered: Oct 2018
Distribution: Ubuntu 24.04
Posts: 46

Rep: Reputation: 1
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.
 
Old 06-12-2019, 02:50 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
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
 
2 members found this post helpful.
Old 06-14-2019, 09:38 AM   #3
lxs602
Member
 
Registered: Oct 2018
Distribution: Ubuntu 24.04
Posts: 46

Original Poster
Rep: Reputation: 1
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

Last edited by lxs602; 06-14-2019 at 09:39 AM.
 
1 members found this post helpful.
Old 06-14-2019, 05:52 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,841

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Thanks. It turned out to be tlp.
There you go.
 
Old 06-15-2019, 02:11 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by lxs602 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
systemctl status postgresql-tst.service starts the service if service is stopped MarianForums Linux - Newbie 7 11-03-2018 03:02 PM
DWA-131 Access Point - Debian : interface state UNINITIALIZED->DISABLED , AP-DISABLED mr.simo Linux - Networking 1 03-22-2018 03:29 PM
When Centos 6.3 starting,All services starting OK and starting Atd: OK .And stop scr. DeSouffle Linux - General 4 08-29-2013 12:46 AM
[SOLVED] Starting File System .. Starting File System .. Starting File System .. Starting File rmknox Linux - Newbie 3 08-15-2010 11:30 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration