mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Some more debug messages
This commit is contained in:
parent
6aa9d325ce
commit
61d2b489ed
1 changed files with 3 additions and 1 deletions
|
@ -1269,11 +1269,13 @@ __check_services_systemd() {
|
|||
fi
|
||||
|
||||
servicename=$1
|
||||
echodebug "Checking if ${servicename} is enabled"
|
||||
echodebug "Checking if service ${servicename} is enabled"
|
||||
|
||||
if [ "$(systemctl is-enabled ${servicename})" = "enabled" ]; then
|
||||
echodebug "Service ${servicename} is enabled"
|
||||
return 0
|
||||
else
|
||||
echodebug "Service ${servicename} is NOT enabled"
|
||||
return 1
|
||||
fi
|
||||
} # ---------- end of function __check_services_systemd ----------
|
||||
|
|
Loading…
Add table
Reference in a new issue