Paul Vixie wrote this message on Sun, May 24, 2015 at 18:05 -0700:
> bhyve interprets SIGTERM as an ACPI poweroff, and usually the VM will
> shutdown very quickly. but it may not happen in five seconds, which is
> all halt(8) (and reboot(8)) promises. the code for reboot and halt
> (/usr/src/sbin/reboot/reboot.c) is shown below. what's the right way to
> change this so that if there are 50 bhyve processes running and they are
> ACPI powerdowning as fast as they can, then the halt or reboot of the
> bare metal will wait for them?

Shouldn't shutdown be used instead of reboot/halt?  This allows
various rc.d scripts to run, and you can use that to make sure all
your bhyve instances are shutdown...

-- 
  John-Mark Gurney                              Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
_______________________________________________
freebsd-virtualization@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"

Reply via email to