From c472cf02b7dd3bdb9d59b5129267497ddd68b124 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 29 Mar 2024 10:25:16 -0600 Subject: [PATCH] f --- check_systemd_service.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/check_systemd_service.sh b/check_systemd_service.sh index 052749e..0c16e67 100755 --- a/check_systemd_service.sh +++ b/check_systemd_service.sh @@ -2,7 +2,7 @@ function usage { echo "Usage: - -u [UNIT name] + -u [UNIT name] (required) -t Service is triggered by a timer or is a oneshot service. Is allowed to be inactive -d A service is allowed to not be enabled" } @@ -37,8 +37,9 @@ shift $((OPTIND -1)) # Check if UNIT name is provided if [ -z "$UNIT_NAME" ]; then - usage - exit -1 + echo "Missing unit name." + usage + exit -1 fi # Check if the unit is enabled