Viewing states of service with systemctl

The service unit is one of the most important units of systemd, which is managed using systemctl. If no unit type is specified, systemctl shows the status of the service unit, if it exists. The following is the syntax to view any unit:

# systemctl     status    name.type

Here, name is the service name and type is the unit type, such as service, socket, path, and so on. The example in the following screenshot illustrates the usage of the systemctl command for viewing the status of a service:

The following table lists the various statuses of services, along with their descriptions:

Status

Description

Loaded

Unit configuration file is processed successfully

Active (running)

Running with one or more active processes

Active (exited)

Successfully completed a one-time configuration

Active (waiting)

Running and waiting for an event to take place

Inactive

Not running currently

Enabled

Will get started at boot time

Disabled

Will not get started at boot time

Static

Cannot be enabled directly, but may be started by another enabled unit automatically

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.178.165