06-12-2019, 07:22 PM
That can be done by systemctl:
systemctl start
systemctl stop
systemctl status
systemctl enable
systemctl disable
Some examples:
Get information about all running services:
$ systemctl | grep running
Get information about all enabled services:
$ systemctl list-unit-files | grep enabled
Get information about service:
$ systemctl status NetworkManager.service
$ systemctl status wpa_supplicant.service
To stop a service:
$ systemctl stop NetworkManager.service
$ systemctl stop wpa_supplicant.service
To start a service permanent:
$ systemctl enable NetworkManager.service
To disable a service permanent:
$ systemctl disable NetworkManager.service
systemctl start
systemctl stop
systemctl status
systemctl enable
systemctl disable
Some examples:
Get information about all running services:
$ systemctl | grep running
Get information about all enabled services:
$ systemctl list-unit-files | grep enabled
Get information about service:
$ systemctl status NetworkManager.service
$ systemctl status wpa_supplicant.service
To stop a service:
$ systemctl stop NetworkManager.service
$ systemctl stop wpa_supplicant.service
To start a service permanent:
$ systemctl enable NetworkManager.service
To disable a service permanent:
$ systemctl disable NetworkManager.service