chechvm should point to mon file

This commit is contained in:
Michael Keist 2018-08-12 20:36:08 +02:00
parent e418137c2e
commit ce8f08776d
1 changed files with 2 additions and 2 deletions

4
nlvmi
View File

@ -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