From 1183e542f654525fa6c57abbe4c9f53680fa434b Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 18 Sep 2023 11:38:43 +0200
Subject: [PATCH] fix: list units --all to show all stopped units

---
 check_systemdunit                   | 5 +++--
 docs/20_Checks/check_systemdunit.md | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/check_systemdunit b/check_systemdunit
index 2f62cb9..35cf7cc 100755
--- a/check_systemdunit
+++ b/check_systemdunit
@@ -7,11 +7,12 @@
 # 2023-09-05  v1.0  <axel.hahn@unibe.ch>
 # 2020-09-06  v1.1  <axel.hahn@unibe.ch>  add params -s, -l
 # 2020-09-06  v1.2  <axel.hahn@unibe.ch>  add param -r to use a regex
+# 2020-09-18  v1.3  <axel.hahn@unibe.ch>  fix: list units --all to show all stopped units
 # ================================================================================
 
 . $( dirname $0 )/inc_pluginfunctions
 
-export self_APPVERSION=1.2
+export self_APPVERSION=1.3
 
 # ----------------------------------------------------------------------
 # FUNCTIONS
@@ -62,7 +63,7 @@ EOF
 
 # get the list of units
 function _getUnits(){
-  systemctl --no-legend --no-pager
+  systemctl --no-legend --no-pager --all
 }
 
 # ----------------------------------------------------------------------
diff --git a/docs/20_Checks/check_systemdunit.md b/docs/20_Checks/check_systemdunit.md
index 631acfe..2f1b923 100644
--- a/docs/20_Checks/check_systemdunit.md
+++ b/docs/20_Checks/check_systemdunit.md
@@ -16,7 +16,7 @@ A unit is everything listed by systemctl command - services, timers, targets, ..
 ______________________________________________________________________
 
 CHECK_SYSTEMDUNIT
-v1.2
+v1.3
 
 (c) Institute for Medical Education - University of Bern
 Licence: GNU GPL 3
-- 
GitLab