systemctl
Control the systemd system and service manager. Some subcommands such as `disable`, `status`, `reboot` etc. have their own usage documentation.
More info →Subcommands (37)
Ephemerally bind-mount a file or directory from the host into a unit's mount namespace.
Cancel one or more pending jobs in the system manager or user manager.
Show the full contents of unit files as systemd sees them.
This command is an alias of `systemctl try-reload-or-restart`.
This command is an alias of `systemctl try-restart`.
This command is an alias of `systemctl stop`.
Enter system default mode.
Disable systemd services. See also: `systemctl revert`.
Edit systemd unit files. See also: `systemctl revert`.
Enter emergency mode `emergency.target`.
Enable systemd services. See also: `systemctl revert`.
Ask the service manager to quit.
Freeze one or more units. Frozen units can be resumed with `systemctl thaw`.
Shut down and halt the system (stop the OS kernel but keep hardware powered on). See also: `halt`.
Show the manual pages for one or more units, or for the unit a process belongs to (by PID).
Hibernate the system by saving the current state to disk and powering off.
Start the specified unit with its dependencies and stop all others. Ignores the units which have `IgnoreOnIsolate=yes`.
Reboot the system via kexec.
Send a signal to one or more processes of a unit.
Link a unit file located outside the unit file search path into the search path. See also: `systemctl disable`.
Link units to `/dev/null` so that they cannot be started. See also: `systemctl revert`.
Power off the system. See also: `poweroff`.
Reset the enablement state of unit files to the defaults specified in preset policy files. See also: `systemctl preset-all`, `systemctl list-unit-files`.
Reboot the system.
Re-enable one or more units. Used when targets of a service change.
Reload a service's configuration without restarting it. This reloads the service itself (like Apache or `nginx` configs), not the systemd unit file. To reload unit files, use `systemctl daemon-reload`.
Enter rescue mode. See also: `systemctl emergency`.
Stop and then start one or more systemd units. Can be used in place of `systemctl start` on a stopped unit, but `start` is safer so that a running unit isn't accidentally restarted.
Revert unit files to their vendor versions. Undoes the effects of `edit`, `enable`, `disable`, `set-property`, and `mask`.
Show properties of units or systemd itself.
Start systemd units.
Display the status of systemd units.
Stop systemd units.
Suspend the system.
Thaw (resume) one or more frozen units. Units can be frozen with `systemctl freeze`.
Unmask units to make them startable again. This undoes the effect of `systemctl mask`.
Show units that processes belong to. If no PID is specified, shows the unit the `systemctl` command itself is invoked in.
Options (1)
-t, --typebooleanList all service/socket/automount units filtering by running/failed state
systemctl list-units {{[-t|--type]}} {{service|socket|automount|...}} --state {{failed|running}}Examples (8)
Show all running services
List failed units
systemctl --failedStart/Stop/Restart/Reload/Show the status of a service
systemctl start|stop|restart|reload|status unitEnable/Disable a unit to be started on bootup
systemctl enable|disable unitReload systemd, scan for new or changed units
Check if a unit is active/enabled/failed
systemctl is-active|is-enabled|is-failed unitList all service/socket/automount units filtering by running/failed state
systemctl list-units [-t|--type] service|socket|automount|... --state failed|runningShow the contents & absolute path of a unit file or edit it
systemctl cat|edit unit