mirror of
https://github.com/churchers/vm-bhyve.git
synced 2025-12-11 17:30:23 +01:00
Fix typo in rctl function name and send kill twice
Windows guests seem to shutdown if kill sent twice
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user