systemctl: add global status example (#6849)
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
> 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>.
|
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html>.
|
||||||
|
|
||||||
|
- Show all running services:
|
||||||
|
|
||||||
|
`systemctl status`
|
||||||
|
|
||||||
- List failed units:
|
- List failed units:
|
||||||
|
|
||||||
`systemctl --failed`
|
`systemctl --failed`
|
||||||
@@ -27,10 +31,6 @@
|
|||||||
|
|
||||||
`systemctl daemon-reload`
|
`systemctl daemon-reload`
|
||||||
|
|
||||||
- Check if a unit is active:
|
|
||||||
|
|
||||||
`systemctl is-active {{unit}}`
|
|
||||||
|
|
||||||
- Check if a unit is enabled:
|
- Check if a unit is enabled:
|
||||||
|
|
||||||
`systemctl is-enabled {{unit}}`
|
`systemctl is-enabled {{unit}}`
|
||||||
|
Reference in New Issue
Block a user