Ubuntu now checks for enabled services

This commit is contained in:
Pedro Algarvio 2014-02-20 13:01:07 +00:00
parent 30b3248f89
commit 7e15bd0640

View file

@ -1597,6 +1597,21 @@ install_ubuntu_restart_daemons() {
done
return 0
}
install_ubuntu_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
}
#
# End of Ubuntu Install Functions
#