Chkservice - A Tool to Manage Systemd Units on Linux

chkservice systemdSystemd 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.

1) Installation

chkservice is available on package and build from source code. It exists a repository for Ubuntu, Arch and Fedora systems.

On Ubuntu

# 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.

On Arch:

# git clone https://aur.archlinux.org/chkservice.git
# cd chkservice
# makepkg -si

On Fedora

# 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.

# chkservice

You can see a list of the system unit available. You can display the help with the ? command

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 space command

To quit use the q command

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.

About Alain Francois

IT Linux administrator passionate of free and open source software, I work on Linux Systems since some years on installations and deployments of certain solutions. I like to share my experiences with a wider audience by training and conferences.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.

4 Comments

    1. Hi, you can download the release build here https://github.com/linuxenko/chkservice/releases/tag/0.1 but you need to have a libsystemd version greater than 222. For exemple, Centos 7 has an old version 219 so it doesn't work yet. You can for exemple, check here https://pkgs.org/download/libsystemd.so.0()(64bit) which rpm system has the appropriate version of libsystemd (>222) in order to run chkservice.

      I didn't test it on other yum systems but you can do it and give us a return or you can do it directly on the github project

  1. W: The repository 'http://ppa.launchpad.net/linuxenko/chkservice/ubuntu zesty Release' does not have a Release file.
    N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: Failed to fetch http://ppa.launchpad.net/linuxenko/chkservice/ubuntu/dists/zesty/main/binary-i386/Packages 404 Not Found
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package chkservice

    On https://launchpad.net/~linuxenko, I found this :

    Svetlana Linuxenko is not an active member of any Launchpad teams.

    This package looks interesting, but I don't know if I can trust it based on the above information...

    1. hi, how did you proceed exactly? may you have done an error somewhere.

      I have tested it on Zesty to and you can look

      # apt install chkservice
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
      chkservice
      0 upgraded, 1 newly installed, 0 to remove and 100 not upgraded.
      Need to get 24.4 kB of archives.
      After this operation, 81.9 kB of additional disk space will be used.
      Get:1 http://ppa.launchpad.net/linuxenko/chkservice/ubuntu zesty/main amd64 chkservice amd64 0.1.0.2ppa0ubuntu3 [24.4 kB]
      Fetched 24.4 kB in 1s (23.8 kB/s)
      Selecting previously unselected package chkservice.
      (Reading database ... 70548 files and directories currently installed.)
      Preparing to unpack .../chkservice_0.1.0.2ppa0ubuntu3_amd64.deb ...
      Unpacking chkservice (0.1.0.2ppa0ubuntu3) ...
      Setting up chkservice (0.1.0.2ppa0ubuntu3) ...

      And below you can confirm
      # dpkg -l | grep chkservice
      ii chkservice 0.1.0.2ppa0ubuntu3 amd64 Ncurses based gui for systemd

      Normally it also work on Zesty so you can trust it. Just look exactly what you have wrote on command line, may be you have inserted something that you didn't notice.