CentOS now checks for enabled services

This commit is contained in:
Pedro Algarvio 2014-02-20 13:02:10 +00:00
parent 7e15bd0640
commit 355c0e44b0

View file

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