From 355c0e44b0186e17f3fe7fb32caa25b29bfb92a0 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 20 Feb 2014 13:02:10 +0000 Subject: [PATCH] CentOS now checks for enabled services --- bootstrap-salt.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 92144c4..c5c72cb 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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 #