systemctl: add is-active and is-enabled examples (#4282)

This commit is contained in:
hellojukay
2020-09-01 22:31:47 +08:00
committed by GitHub
parent 87324c6e54
commit aab149bc7b

View File

@@ -1,6 +1,7 @@
# systemctl
> Control the systemd system and service manager.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
- List failed units:
@@ -25,3 +26,11 @@
- Reload systemd, scanning for new or changed units:
`systemctl daemon-reload`
- Check if a unit is active:
`systemctl is-active {{unit}}`
- Check if a unit is enabled:
`systemctl is-enabled {{unit}}`