openSUSE now checks for enabled services

This commit is contained in:
Pedro Algarvio 2014-02-20 12:04:42 +00:00
parent a67f57b980
commit 3adc8e861d

View file

@ -3208,6 +3208,23 @@ install_opensuse_restart_daemons() {
done
}
install_opensuse_check_services() {
if [ ! -f /bin/systemctl ]; then
# Not running systemd!? Don't check!
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_systemd salt-$fname || return 1
done
return 0
}
#
# End of openSUSE Install Functions.
#