From 6aa9d325ce623e6ffb77c91010e0b625ca70f166 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 20 Feb 2014 11:54:03 +0000 Subject: [PATCH] Log what we're doing in debug mode --- bootstrap-salt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 9161df9..6b7ccc5 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -1267,7 +1267,10 @@ __check_services_systemd() { elif [ $# -ne 1 ]; then echoerror "You need to pass a service name to check as the single argument to the function" fi + servicename=$1 + echodebug "Checking if ${servicename} is enabled" + if [ "$(systemctl is-enabled ${servicename})" = "enabled" ]; then return 0 else