systemctl
Topic: System and services
Program: systemctl
Shows and controls services (start, stop, enable).
Package: systemd
Usage
systemctl [OPTION]... COMMAND [UNIT]...
Description
Show and control the services of the system. Commands: status, start, stop, restart, reload, enable, disable (enable --now also starts), is-active, is-enabled, is-failed, list-units, list-unit-files. Options: -t service, -a (also inactive units), --failed, --no-legend, -l (do not cut long lines), -q, --version.
Options in the simulator
-
-h, --help show this help and exitThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
61 more options of the real program, not in the simulator yet
-
--versionnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--systemnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--usernot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-C, --capsuleneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-H, --hostneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-M, --machineneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-t, --typeneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--stateneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--failednot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-p, --propertyneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-Pneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-a, --allnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-l, --fullnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-r, --recursivenot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--reversenot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--beforenot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--afternot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--with-dependenciesnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--job-modeneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-T, --show-transactionnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--show-typesnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--valuenot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--check-inhibitorsneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-inot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--kill-whomneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--kill-valueneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-s, --signalneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--whatneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--nownot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--dry-runnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-q, --quietnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--no-warnnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--waitnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--no-blocknot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--no-wallnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--messageneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--no-reloadnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--legendneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--no-pagernot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--no-ask-passwordnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--globalnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--runtimenot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-f, --forcenot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--preset-modeneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--rootneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--imageneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--image-policyneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-n, --linesneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
-o, --outputneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--firmware-setupnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--boot-loader-menuneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--boot-loader-entryneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--reboot-argumentneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--plainnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--timestampneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--read-onlynot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--mkdirnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--markednot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--drop-inneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--whenneeds a value not in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
-
--stdinnot in the simulator yetThe option exists on a real system; for systemctl the simulator knows -t service, -a, -l, -q, --failed, --no-legend, --no-pager and --now.
Examples
$ systemctl status app
● app.service - Shop API
Loaded: loaded (/etc/systemd/system/app.service; enabled; preset: enabled)
Active: active (running) since Sat 2026-10-17 06:01:00 UTC; 3h 41min ago
Invocation: e210961b058d8fb2a7c4efe1121e35a0
Main PID: 2114 (python3)
Tasks: 1 (limit: 9387)
Memory: 96M (peak: 96M)
CPU: 0
CGroup: /system.slice/app.service
└─2114 python3 app.py
Oct 17 06:01:00 web-01 systemd[1]: Starting app.service - Shop API...
Oct 17 06:01:00 web-01 systemd[1]: Started app.service - Shop API.
$ systemctl is-active app
active
$ systemctl is-active backup
inactive Where you learn it
Lessons
- Services with systemctl Linux Basics, Module 6: Processes