From d2432ef33527184e200e3d46c92f2781a015d9e7 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 16 Mar 2013 18:38:12 +0000 Subject: [PATCH] Let's try to also output any existing logs. --- bootstrap-salt.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 54d51c7..a174647 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2272,6 +2272,18 @@ if [ "$DAEMONS_RUNNING_FUNC" != "null" ]; then for line in "$(ps auxwww)"; do echodebug "$line" done + + 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 + + [ ! -f /var/log/$fname ] && continue + + echodebug "DEAMON LOGS for $fname: $(cat /var/log/$fname)" + + done exit 1 fi fi