From b16ed72e13fce39f909dc8ad6effecee959ca36a Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 20 Feb 2014 12:07:05 +0000 Subject: [PATCH] Gentoo now checks for services enabled --- bootstrap-salt.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 78a1da7..6104fe0 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -3515,6 +3515,21 @@ install_gentoo_restart_daemons() { done } +install_gentoo_check_services() { + if [ ! -d "/run/systemd/system" ]; 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 Gentoo Install Functions. #