mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Log what we're doing in debug mode
This commit is contained in:
parent
02f8f8ba02
commit
6aa9d325ce
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue