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