From ebf1fda83b58b58a70b0bad8ba9ece9da015acf0 Mon Sep 17 00:00:00 2001 From: vinllen Date: Thu, 19 Sep 2019 14:02:53 +0800 Subject: [PATCH] update start script to only run hypervisor when type == sync --- scripts/start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index 91fe676..30515cc 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -16,4 +16,8 @@ if [ "Linux" != "$(uname -s)" ];then exit 1 fi -./hypervisor --daemon --exec="./$name.linux -conf=$1 -type=$2 1>>$name.output 2>&1" 1>>hypervisor.output 2>&1 +if [ "sync" == $2 ]; then + ./hypervisor --daemon --exec="./$name.linux -conf=$1 -type=$2 1>>$name.output 2>&1" 1>>hypervisor.output 2>&1 +else + ./$name.linux -conf=$1 -type=$2 1>>$name.output 2>&1 & +fi