From ce8f08776dc32ad4b8f7d535bd6f64c0b3d00c23 Mon Sep 17 00:00:00 2001 From: micuell Date: Sun, 12 Aug 2018 20:36:08 +0200 Subject: [PATCH] chechvm should point to mon file --- nlvmi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nlvmi b/nlvmi index db29daf..32fe770 100755 --- a/nlvmi +++ b/nlvmi @@ -129,7 +129,7 @@ function vmstart { if [ $LOGLEVEL -gt "1" ]; then echo ${COMMAND[@]}; fi `"${COMMAND[@]}"` #Set VNC Password -# echo "change vnc password ${array[31]}" | socat - unix-connect:$RUNDIRECTORY/${array[1]}.mon >/dev/null + echo "change vnc password ${array[31]}" | socat - unix-connect:$RUNDIRECTORY/${array[1]}.mon >/dev/null done export VMFOUND="yes" } @@ -178,7 +178,7 @@ if [ $# -gt 0 ]; then if [[ $VMFOUND == "no" ]]; then echo "no VM with that name found!"; exit 1; fi) elif [ $1 == "checkvm" ]; then if [ -z $2 ]; then echo "checkvm needs a vmname!"; exit 1; fi - if [ -e $RUNDIRECTORY/$2.pid ]; then echo $2 running; else echo $2 stopped; fi + if [ -e $RUNDIRECTORY/$2.mon ]; then echo $2 running; else echo $2 stopped; fi fi else checkdb