feat: list systemd services

This commit is contained in:
Ryan Yin
2024-08-17 20:40:27 +08:00
parent 1bf67acde9
commit 0693713e94

View File

@@ -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