diff options
-rw-r--r-- | src/linux/systemd.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/linux/systemd.md b/src/linux/systemd.md index 14ced0b..18f87e5 100644 --- a/src/linux/systemd.md +++ b/src/linux/systemd.md @@ -7,6 +7,9 @@ Inspect units: systemctl [opts] [cmd] [opts] --user + --type=TYPE List only given types eg, service, timer, socket (use --type=help for a list) + --state=STATE List only given states eg running, enabled (use --state=help for a list) + --failed List only failed services [cmd] list-units <pattern> List units in memory @@ -25,6 +28,15 @@ systemctl [opts] [cmd] show <unit> Show properties of unit ``` +### Example: List failed units +```bash +# List all system failed units. +systemctl --failed + +# List all user failed units. +systemctl --user --failed +``` + ### Example: Trivial user unit ```bash |