start stop in web

This commit is contained in:
mad
2018-08-12 20:21:33 +02:00
parent b6d400555e
commit e418137c2e
2 changed files with 39 additions and 2 deletions

5
nlvmi
View File

@@ -176,7 +176,10 @@ if [ $# -gt 0 ]; then
vmstop $2
done
if [[ $VMFOUND == "no" ]]; then echo "no VM with that name found!"; exit 1; fi)
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
fi
else
checkdb
fi