From 6259d336e18edc585b15935423a26db7eef0c017 Mon Sep 17 00:00:00 2001 From: Brendan Melville Date: Wed, 4 Nov 2015 15:46:38 -0800 Subject: [PATCH] bootstrap logs will now be stored in a log directory. --- examples/bootstrap/bootstrap.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/bootstrap/bootstrap.sh b/examples/bootstrap/bootstrap.sh index c33fda1f8..43db6b584 100755 --- a/examples/bootstrap/bootstrap.sh +++ b/examples/bootstrap/bootstrap.sh @@ -1,4 +1,7 @@ #!/bin/bash +LOGDIR=log +mkdir $LOGDIR + KUBECTL=`which kubectl` if [[ -z $KUBECTL ]] ; then echo Cannot find kubectl @@ -12,7 +15,7 @@ if [[ -z $RESOURCIFIER ]] ; then exit 1 fi pkill -f $RESOURCIFIER -$RESOURCIFIER > resourcifier.log 2>&1 --kubectl=$KUBECTL --port=8082 & +$RESOURCIFIER > $LOGDIR/resourcifier.log 2>&1 --kubectl=$KUBECTL --port=8082 & echo echo "Starting expandybird..." @@ -22,7 +25,7 @@ if [[ -z $EXPANDYBIRD ]] ; then exit 1 fi pkill -f $EXPANDYBIRD -$EXPANDYBIRD > expandybird.log 2>&1 --port=8081 --expansion_binary=expandybird/expansion/expansion.py & +$EXPANDYBIRD > $LOGDIR/expandybird.log 2>&1 --port=8081 --expansion_binary=expandybird/expansion/expansion.py & echo echo "Starting deployment manager..." @@ -32,7 +35,7 @@ if [[ -z $MANAGER ]] ; then exit 1 fi pkill -f $MANAGER -$MANAGER > manager.log 2>&1 --port=8080 --expanderURL=http://localhost:8081 --deployerURL=http://localhost:8082 & +$MANAGER > $LOGDIR/manager.log 2>&1 --port=8080 --expanderURL=http://localhost:8081 --deployerURL=http://localhost:8082 & echo echo "Starting kubectl proxy..."