Log what we're doing in debug mode

This commit is contained in:
Pedro Algarvio 2014-02-20 11:54:03 +00:00
parent 02f8f8ba02
commit 6aa9d325ce

View file

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