systemctl: add is-active and is-enabled examples (#4282)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# systemctl
|
# systemctl
|
||||||
|
|
||||||
> Control the systemd system and service manager.
|
> Control the systemd system and service manager.
|
||||||
|
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
|
||||||
|
|
||||||
- List failed units:
|
- List failed units:
|
||||||
|
|
||||||
@@ -25,3 +26,11 @@
|
|||||||
- Reload systemd, scanning for new or changed units:
|
- Reload systemd, scanning for new or changed units:
|
||||||
|
|
||||||
`systemctl daemon-reload`
|
`systemctl daemon-reload`
|
||||||
|
|
||||||
|
- Check if a unit is active:
|
||||||
|
|
||||||
|
`systemctl is-active {{unit}}`
|
||||||
|
|
||||||
|
- Check if a unit is enabled:
|
||||||
|
|
||||||
|
`systemctl is-enabled {{unit}}`
|
||||||
|
Reference in New Issue
Block a user