Fix typo in rctl function name and send kill twice

Windows guests seem to shutdown if kill sent twice
This commit is contained in:
Matt Churchyard
2016-04-16 08:27:19 +01:00
parent 2c004adcdc
commit a8a5c64edc
3 changed files with 4 additions and 2 deletions

View File

@@ -422,6 +422,8 @@ __vm_stop(){
if [ -n "${_pid}" ]; then
echo "Sending ACPI shutdown to ${_name}"
kill "${_pid}"
sleep 1
kill "${_pid}"
elif [ -n "${_loadpid}" ]; then
if __confirm "Guest ${_name} is in bootloader stage, do you wish to force exit"; then
echo "Killing ${_name}"

View File

@@ -28,7 +28,7 @@
# set limits to virtual machine
# this is the background process
#
__rcrl_set_limits(){
__rctl_set_limits(){
local _pcpu _rbps _wbps _riops _wiops
local _pid

2
vm
View File

@@ -25,7 +25,7 @@
# POSSIBILITY OF SUCH DAMAGE.
VERSION=1.0-beta
VERSION_INT=100003
VERSION_INT=100004
VERSION_BSD=$(uname -K)
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin