systemd Tools – General Usage Areas

systemd Tools – General Usage Areas

April 3, 2016·İbrahim Korucuoğlu
İbrahim Korucuoğlu

Nowadays, Debian, Fedora, Red Hat, Ubuntu and ArchLinux etc.Linuxoperatingsystems, which are considered the main distribution, have started to use systemd. Developments show that its use will become widespread.Linuxusers will need to improve themselves in this area.

When we search for resources on the internet on this subject, we usually come across English manpages ( wiki ) or short blog posts prepared by the developers. It is quite difficult to find a detailed source in Turkish. There is no problem for those who use the operating system visually and do not want to interfere with the rest. However, those who are curious about what is going on in the background or want to have knowledge in problem solving will inevitably need to learn systemd tools. Based on this idea, we plan to continue the articles in a sequential order.

In the introduction article about systemd   , we tried to give brief explanatory information. In this article, what tools does systemd offer to users? We will explain what these tools are.

systemd is a program defined as a system and service manager. It is similar to the services program that runs when Windows Operating System users type the services.msc command in the Run box. It can be controlled from the command line and also has a visual user interface (systemd-ui).

What can be done about the services available on the computer?

Examples of operations that can be done are Start, Stop, Restart, Disable, Enable. It is possible to do these with systemd. It was already done with sysvinit, but now it can be done faster. At least systemd should be that the main distributions preferred to switch.

It is important to go step by step and understand the basics about systemd. All of the computer services we have mentioned as services so far are called units in the systemd literature. In our articles, the term “unit” will be used for conceptual integrity. The service expression is used slightly separately from the unit expression in systemd.

Systemd Tools

If systemd is running on your system, you can ask any question you want and get an answer. Then, as users, we need to learn how to “ask questions” and know which tool to use to do this. In systemd, there are 8 tools in the outermost layer that interact with the user. These are called systemctl, journalctl, notify, analyze, cgls, cgtop, loginctl and nspawn. You can interact with systemd using the options, parameters and unit names of these tools. You query the status and wait for an answer, and depending on the answer you receive, you can start, stop or disable a service.

TIP:   If you want, you can even use the snapshot service to photograph the status of your system’s running services and restore your system to this state in case of a malfunction. (Unless you turn off your computer. When you do, the snapshot is deleted.)

Systemd Tools

systemctl

It refers to the tool that controls the systemd system and its services.

journalctl

It refers to the tool that checks systemd log files to check and report events.

systemd-notify

It is a tool used to notify other services and users when there is a change in the status of the units. It is usually related to errors that occur during startup.

systemd-analyze

It analyzes the statistics and analysis of the time spent during the startup of your system. Kernel startup time and user processes startup time are measured and displayed separately. This is the tool used to analyze times.

systemd-cgls

It is a tool that is used to check the status of control groups in the systemd operating logic and which services are running in which control group and sub-steps.

systemd-cgtop

In the systemd-cgls tool, all main groups and their members are displayed hierarchically, while in the systemd-cgtop tool, the main group and system usage at the top are displayed. It is similar to the “service –status-all” command in sysvinit.

systemd-loginctl

It is the tool that controls the login processes of the Operating System. It can be defined as the login manager.

systemd-nspawn

It is a tool used for debugging and simulation. It is similar to the chroot tool but more. It allowsa program, even anotheroperatingsystem, to be run in isolation, without harming the real resources of the system. It is very useful forsoftwaredevelopers.
In this article, we talked about the most important systemd tools as clearly as possible. In the following articles, we will try to give detailed explanations and examples.

Last updated on