Skip to content

systemctl command

Start, stop, enable and check systemd services.

On this page

Syntax

systemctl [command] [unit]

Provided by the systemd package. Run man systemctl for the full manual.

Common options

OptionWhat it does
startStart a service now
stopStop a service
restartStop and start
reloadReload config without a restart
statusState and recent log lines
enableStart at boot (--now also starts it)
disableDon't start at boot
is-activePrint active or inactive
list-units --type=serviceRunning services
daemon-reloadRe-read unit files after editing

Examples

  1. Start a service

    sudo systemctl start nginx
  2. Stop a service

    sudo systemctl stop nginx
  3. Restart a service

    sudo systemctl restart php8.4-fpm
  4. Reload config

    sudo systemctl reload nginx
  5. Check a service

    systemctl status mysql
  6. Start now and at every boot

    sudo systemctl enable --now docker
  7. Don't start at boot

    sudo systemctl disable apache2
  8. List running services

    systemctl list-units --type=service --state=running
  9. List failed units

    systemctl --failed
  10. After editing a unit file

    sudo systemctl daemon-reload

systemctl guides

← All Linux commands · Suggest a fix

Back to top