mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 11:55:24 +02:00
systemctl: add is-active and is-enabled examples (#4282)
This commit is contained in:
parent
87324c6e54
commit
aab149bc7b
1 changed files with 9 additions and 0 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue