Systemd is a system and service manager for Linux operating systems which introduces the concept of systemd units and provides a number of features such as parallel startup of system services at boot time, on-demand activation of daemons, etc. It helps to manage services on your Linux OS such as starting/stopping/reloading. But to operate on services with systemd, you need to know the different services launched and the name which exactly matches the service. There is a tool provided which can help Linux users to navigate through the differents services available on your Linux as you do for the differents process in progress on your system with top command.
What is chkservice?
chkservice is a new and handy tool for systemd units management in a terminal. It is a GitHub project developed by Svetlana Linuxenko. It has the particularity to list the differents services presents on your system. You have a view of each service available and you are able to manage it as you want.
chkservice is available on package and build from source code. It exists a repository for Ubuntu, Arch and Fedora systems.
# add-apt-repository ppa:linuxenko/chkservice Ncurses based gui for systemd More info: https://launchpad.net/~linuxenko/+archive/ubuntu/chkservice Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmpjy0025bb/secring.gpg' created
# apt update && apt install chkservice Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] ............................ ............................ The following NEW packages will be installed: chkservice 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 24.4 kB of archives. After this operation, 81.9 kB of additional disk space will be used.
# git clone https://aur.archlinux.org/chkservice.git
# cd chkservice
# makepkg -si
# dnf copr enable srakitnican/default
# dnf install chkservice
2) Manage services with chkservice
It can be executed with
sudo or without it as read only.
You can see a list of the system unit available. You can display the help with the
You see that you can operate on the system unit by enabling, reloading, starting. You also have some information about the unit depending on the letter before each service name.
For example, we can reload with the
r command mysql.service as below. you can see the "updated.." message at the top
You can decide to disable a service with
To quit use the
If you want to better understand the different informations of each service, you can select one service on the list and check its status to verify if it corresponds to what you think when reading chkservice help.
We have a possibility to manage your Linux services in the terminal very easily by listing each service and doing some operation. It is useful that retain the exact name of the service before doing anything. It is a new project which can evolve with the return of the different Linux user experience. So don't hesitate to report bugs or propose some idea directly in the official GitHub project.