From 892e9574ec5a4fe06ebbd5824a554800d6ea4e73 Mon Sep 17 00:00:00 2001 From: David Coppit Date: Wed, 24 Jun 2015 06:39:54 -0400 Subject: [PATCH] Fix syntax errors --- start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 60505c9..156b57e 100755 --- a/start.sh +++ b/start.sh @@ -1,7 +1,7 @@ #!/bin/bash function ts { - echo [`date '+%b %d %X' MASTER:`] + echo [`date '+%b %d %X'`] MASTER: } echo "$(ts) Starting master controller" @@ -24,7 +24,7 @@ fi PIDS=() -for $CONFIG_FILE in "${CONFIG_FILES[@]}" +for CONFIG_FILE in "${CONFIG_FILES[@]}" do echo "$(ts) Launching monitor for $CONFIG_FILE" /root/monitor.sh $CONFIG_FILE & @@ -45,7 +45,7 @@ do echo "$(ts) Monitor for ${CONFIG_FILES[$i]} has died (PID ${PIDS[$i]}). Killing other monitors and exiting." - for $PID in "${PIDS[@]}" + for PID in "${PIDS[@]}" do kill -9 $PID >/dev/null 2>&1 done