systemctl `systemctl` is a Linux command used to control the state of system services and daemons. It is part of the systemd system management daemon and can be used to start, stop, restart, and query the status of system services.
$ Copy
start service Generate and copy
stop service Generate and copy
restart service Generate and copy
query service status Generate and copy
start service on boot Generate and copy
disable service on boot Generate and copy
check if service is enabled on boot Generate and copy
mask service Generate and copy
unmask service Generate and copy
reload service configuration Generate and copy
reset failed service Generate and copy
reload daemon configuration Generate and copy
other usages Generate and copy
Examples
List all units: systemctl -a
Show process tree: systemctl -t
Specify process ID: systemctl -p <process ID>
Specify process user: systemctl -u <process user>
Show detailed information: systemctl -f
Show units: systemctl -H
Start service: systemctl start <service name>
Stop service: systemctl stop <service name>
Restart service: systemctl restart <service name>
Query service status: systemctl status <service name>
Start service on boot: systemctl enable <service name>
Disable service on boot: systemctl disable <service name>
Check if service is enabled on boot: systemctl is-enabled <service name>
Mask service: systemctl mask <service name>
Unmask service: systemctl unmask <service name>
Reload service configuration: systemctl reload <service name>
Reset failed service: systemctl reset-failed <service name>
Reload daemon configuration: systemctl daemon-reload