SystemD
@init, @Linux, @Red_Hat
systemctl
Command | Notes |
---|---|
systemctl | List services |
start SERVICE | Used to start a service (not reboot persistent) |
stop SERVICE | Used to stop a service (not reboot persistent) |
restart SERVICE | Used to stop and then start a service |
reload SERVICE | When supported, reloads the config file without interrupting pending operations |
condrestart SERVICE | Restarts if the service is already running |
status SERVICE | Tells whether a service is currently running |
enable SERVICE | Turn the service on, for start at next boot, or other trigger |
disable SERVICE | Turn the service off for the next reboot, or any other trigger |
is-enabled SERVICE | Used to check whether a service is configured to start or not in the current environment |
list-unit-files --type=service | Print a table of services that lists which runlevels each is configured on or off |
daemon-reload | Used when you create a new service file or modify any configuration |
Directories
- /etc/systemd/system/\*.wants/SERVICE.service - Used to list what levels this service is configured on or off
Single User Mode
Add the following to the kernel arguments `systemd.unit=rescue.target`
Links