LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2020, 10:27 AM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Near Frankfurt, Germany
Distribution: OpenSUSE Leap 15.5, MacOS
Posts: 122

Rep: Reputation: 2
Question Systemd service shown as still active after disabling it, is that correct?


Hello,

I noticed that on my Fedora 31 under XFCE bluetooth is automatically activated on starting up my laptop.

So I looked around for a way to disable it per default. I found the command line solution on UNIX Stackexchange for systemd.

But frankly the terminal's output when checking whether the bluetooth service is still running puzzles me. It tells me the service is still active, see below terminal output. Is this correct and to be expected?

Code:
root@XFedora:~# systemctl disable bluetooth.service
Removed /etc/systemd/system/bluetooth.target.wants/bluetooth.service.
Removed /etc/systemd/system/dbus-org.bluez.service.


root@XFedora:~# systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: enabled)
   Active: active (running) since Sun 2020-03-15 13:14:52 CET; 2h 53min ago
     Docs: man:bluetoothd(8)
 Main PID: 3401 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 9349)
   Memory: 2.5M
      CPU: 80ms
   CGroup: /system.slice/bluetooth.service
           └─3401 /usr/libexec/bluetooth/bluetoothd

Mär 15 13:14:51 XFedora systemd[1]: Starting Bluetooth service...
Mär 15 13:14:51 XFedora bluetoothd[3401]: Bluetooth daemon 5.53
Mär 15 13:14:52 XFedora bluetoothd[3401]: Starting SDP server
Mär 15 13:14:52 XFedora systemd[1]: Started Bluetooth service.
Mär 15 13:14:52 XFedora bluetoothd[3401]: Bluetooth management interface 1.14 initialized
Mär 15 15:52:37 XFedora bluetoothd[3401]: Endpoint registered: sender=:1.324 path=/MediaEndpoint/A2DPSink/sbc
Mär 15 15:52:37 XFedora bluetoothd[3401]: Endpoint registered: sender=:1.324 path=/MediaEndpoint/A2DPSource/sbc
Mär 15 15:59:28 XFedora bluetoothd[3401]: Endpoint unregistered: sender=:1.324 path=/MediaEndpoint/A2DPSink/sbc
Mär 15 15:59:28 XFedora bluetoothd[3401]: Endpoint unregistered: sender=:1.324 path=/MediaEndpoint/A2DPSource/sbc

Thanks in advance for enlightening me
 
Old 03-15-2020, 10:41 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Disabling a service means preventing it from starting when the computer starts. It doesn't stop an already running service. Try systemctl stop.
 
2 members found this post helpful.
Old 03-15-2020, 02:10 PM   #3
PasBern
Member
 
Registered: Dec 2009
Location: Near Frankfurt, Germany
Distribution: OpenSUSE Leap 15.5, MacOS
Posts: 122

Original Poster
Rep: Reputation: 2
Thanks Bernd,

your explanation is logical, hadn't thought about that. I had assumed that disabling the systemd service would also stop it immediately.
 
  


Reply

Tags
bluetooth, systemd



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
usb keyboard identified and events shown but key character not shown on the prompt flyxtop Linux - Software 0 11-30-2013 07:45 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM
User shown as "already exist" when there is no user directory shown on home directory Sharpeye Linux - Newbie 3 03-18-2009 01:17 AM
While booting no option is shown for Linux! Only windows xp is shown!! mon avis Linux - General 7 08-06-2006 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 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