chechvm should point to mon file
This commit is contained in:
parent
e418137c2e
commit
ce8f08776d
4
nlvmi
4
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
|
||||
|
|
Loading…
Reference in New Issue