Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use chkservice, a tool for managing systemd units with Linux terminals

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to use the Linux terminal to manage the systemd unit tool chkservice, many people may not know much about it. In order to make you understand better, the editor summarizes the following content for you. I hope you can get something according to this article.

Systemd, which means system daemon system daemon, is a new initialization system and system management tool that is now so popular that most Linux distributions begin to use this new initialization system.

Systemctl is a systemd tool that helps us manage systemd daemons. It controls the startup procedures and services of the system, uses parallelization, activates sockets and D-Bus for started services, provides on-demand startup of daemons, uses Linux control groups to track processes, and maintains mount and automatic mount points.

In addition, it provides logging daemons, features for controlling basic system configurations, such as hostnames, dates, locales, maintaining a list of logged-in users and running containers and virtual machines, system accounts, runtime directories and settings, and daemons that manage simple network configuration, network time synchronization, log forwarding, and name resolution.

What is chkservice?

Chkservice is a ncurses-based tool for managing systemd units in terminals. It provides a very comprehensive view of systemd services, making them very easy to modify.

Only with super administrative privileges can you change the state of the systemd unit and the sysv system startup script.

Install chkservice in Linux

We can install chkservice in two ways, either through package installation or manually.

For Debian/Ubuntu, use the APT-GET command or the APT command to install chkservice.

$sudo add-apt-repository ppa:linuxenko/chkservice$ sudo apt-get update$ sudo apt-get install chkservice

For Arch Linux systems, use the Yaourt command or the Packer command to install chkservice from the AUR library.

$yaourt-S chkservice or $packer-S chkservice

For Fedora, use the DNF command to install chkservice.

$sudo dnf copr enable srakitnican/default$ sudo dnf install chkservice

For Debian systems, use the DPKG command to install chkservice.

$wget https://github.com/linuxenko/chkservice/releases/download/0.1/chkservice_0.1.0-amd64.deb$ sudo dpkg-I chkservice_0.1.0-amd64.deb

For RPM systems, use the DNF command to install chkservice.

$sudo yum install https://github.com/linuxenko/chkservice/releases/download/0.1/chkservice_0.1.0-amd64.rpm how to use chkservice

Simply enter the following command to start the chkservice tool. The output is divided into four parts.

* * section: this section shows the status of the daemon, such as available [X] or unavailable [] or static [s] or masked-m-

Part II: this section shows the status of the daemon, such as start > or stop =

Part III: this part displays the name of the unit

Part IV: this section briefly shows some information about the daemon

$sudo chkservice

To view the help page, press?. This will show you the options available to manage the systemd service.

Select the daemon you want to enable or disable, and then click the spacebar.

Select the daemon you want to start or stop, and then press s.

Select the daemon to restart and press r, after which you can see the update prompt at the top.

Press Q to exit.

After reading the above, do you have any further understanding of how to use chkservice, a tool for managing systemd units with Linux terminals? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report