From 0693713e94d3a7b5659fb6af047af82f6132997f Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 17 Aug 2024 20:40:27 +0800 Subject: [PATCH] feat: list systemd services --- Justfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 7e364095..0398263b 100644 --- a/Justfile +++ b/Justfile @@ -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