Thursday, August 27, 2015

Stop and Disable a service using Systemd

Stoop and Disable a service using Systemd




First we check to see if the service is active or not using Systemd's systemctl command like this 

systemctl status is-active bluetooth


You will get an output like this 


Now that we see the "Bluetooth" service is running we will try and stop it.
systemctl stop bluetooth



Notice the part inside the black box I highlited it specifically says inactive [dead]  because the service has been shut down. It will still restart with the system on a reboot if you had set it to enable before so for you to totally disable the bluetooth service to never start again you would need to use the "disable" option not the stop option. Lets go ahead and do that now!


systemctl disable bluetooth



Now look at the part of the text in black it says it's disabled fully. So now on your next boot of the system it should not load up again and you will no longer have to keep stopping or disabling it upon reboot. 






Share

& Comment

0 comments:

Post a Comment

 

Copyright © Linux Videos™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.