Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 2015 20:08:35 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Paul Vixie <paul@redbarn.org>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: can we get some interaction between halt/reboot and bhyve?
Message-ID:  <20150525030835.GB37063@funkthat.com>
In-Reply-To: <5562755C.8090407@redbarn.org>
References:  <5562755C.8090407@redbarn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150525030835.GB37063>