Skip to content

Commit

Permalink
feat: list systemd services
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Aug 17, 2024
1 parent 1bf67ac commit 0693713
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -402,4 +402,14 @@ game:
# Delete all failed pods
[group('k8s')]
del-failed:
kubectl delete pod --all-namespaces --field-selector="status.phase==Failed"
kubectl delete pod --all-namespaces --field-selector="status.phase==Failed"

[linux]
[group('services')]
list-inactive:
systemctl list-units -all --state=inactive

[linux]
[group('services')]
list-failed:
systemctl list-units -all --state=failed

0 comments on commit 0693713

Please sign in to comment.