December 2018
Beginner
320 pages
8h 57m
English
Services are started as standalone, or sometimes as dependencies of other services. For example, let's assume a socket unit is enabled, but the service unit with the same socket name is not, then the service will automatically get started when a request is made on the network socket. Similarly, the service can also be triggered by the path unit when a filesystem path condition is met. The following command is used to list the dependency tree of the specified unit:
# systemctl list-dependencies sshd
Starting with CentOS 7, systemd provides a uniform interface to start unit files from their storage loaction. The locations of the unit file stored in the system are as follows:
Read now
Unlock full access