How to Disable a System Service in Linux
Syntax:
sudo systemctl disable name_service.service
The disable command serves for withdrawing the service since the initialization of one or more units. This removes all symlinks to the unit files backing the specified units from the unit configuration directory and hence undoes any changes made by enabling or link.
Example:
sudo systemctl disable mariadb
How to Start, Stop and Restart Services in Linux Using systemctl CommandSecuring a service using systemd
System services play a crucial role in the functioning of a Linux system, handling various tasks and processes in the background. systemctl
is a powerful command-line tool that allows users to manage these services effectively. In this article, we will explore the basics of using systemctl
to start, stop, restart, enable, disable and display status of services in a Linux environment.