mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
CentOS now checks for enabled services
This commit is contained in:
parent
7e15bd0640
commit
355c0e44b0
1 changed files with 15 additions and 0 deletions
|
@ -2260,6 +2260,21 @@ install_centos_testing_post() {
|
|||
return 0
|
||||
}
|
||||
|
||||
install_centos_check_services() {
|
||||
if [ ! -f /sbin/initctl ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
for fname in minion master syndic; do
|
||||
# Skip if not meant to be installed
|
||||
[ $fname = "minion" ] && [ $_INSTALL_MINION -eq $BS_FALSE ] && continue
|
||||
[ $fname = "master" ] && [ $_INSTALL_MASTER -eq $BS_FALSE ] && continue
|
||||
[ $fname = "syndic" ] && [ $_INSTALL_SYNDIC -eq $BS_FALSE ] && continue
|
||||
__check_services_upstart salt-$fname || return 1
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
#
|
||||
# Ended CentOS Install Functions
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue