systemctl
SystemFundamentalsReference onlyControl systemd services
Name: systemctl = systemd control
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
systemctl is the main tool for systemd: start, stop and restart services, enable them at boot, check their status, and control the system state (power off, reboot, suspend). systemd manages "units"; service units end in .service, which you can usually omit.
Syntax
systemctl [OPTION]... COMMAND [UNIT]...Common options
| start / stop | Start / stop a service |
| restart | Restart a service |
| reload | Make the service reload its configuration without stopping (if it can) |
| status | Show service status |
| is-active / is-enabled | Just say whether it runs / starts at boot (scripts use the exit status) |
| enable / disable | Enable / disable at boot |
| --now | With enable / disable: also start / stop it now |
| mask / unmask | Forbid / allow starting the service at all (stronger than disable) |
| daemon-reload | Make systemd reread unit files after you edit them |
| list-units | List units |
| list-unit-files | List unit files and whether they start at boot |
| --failed | List only units that failed |
| --no-pager | Print straight out, without a pager (for scripts and pipes) |