11.5 Understanding systemd Units and Unit Types
As previously mentioned, targets and services are both types of systemd unit. All of the files within the /usr/lib/systemd/system folder are referred to as systemd unit configuration files, each of which represents a systemd unit. Each unit is, in turn, categorized as being of a particular unit type. RHEL 8 supports 12 different unit types including the target and service unit types already covered in this chapter.
The type of a unit file is represented by the filename extension as outlined in Table 11-1 below:
Unit Type |
Filename Extension |
Type Description |
Service |
.service |
System service. |
Target |
.target |
Group of systemd units. |
Automount |
... |