From f5db3710b88f232126aa3a477ac0f2dfa96346bd Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 8 Feb 2013 12:01:50 +0000 Subject: [PATCH] Added start daemons function support to Fedora git installations. --- bootstrap-salt.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 44c69bf..9b7e26a 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -833,7 +833,17 @@ install_fedora_git_post() { systemctl is-enabled salt-$fname.service || (systemctl preset salt-$fname.service && systemctl enable salt-$fname.service) sleep 0.1 systemctl daemon-reload - sleep 0.1 + done +} + +install_fedora_git_start_daemons() { + for fname in minion master syndic; do + + # Skip if not meant to be installed + [ $fname = "minion" ] && [ $INSTALL_MINION -eq 0 ] && continue + [ $fname = "master" ] && [ $INSTALL_MASTER -eq 0 ] && continue + [ $fname = "syndic" ] && [ $INSTALL_SYNDIC -eq 0 ] && continue + systemctl try-restart salt-$fname.service done }