Call "vmctl stop" on each VM at shutdown, for OpenBSD guests this means they
authorsthen <sthen@openbsd.org>
Tue, 20 Feb 2018 10:12:14 +0000 (10:12 +0000)
committersthen <sthen@openbsd.org>
Tue, 20 Feb 2018 10:12:14 +0000 (10:12 +0000)
commit2d4d26c8b1224fb5698ed4e3e3f9b458c48fecdb
tree4ed11e3979b6766d34640789547547a736510131
parent102eed610ee4ff13a0acbe8e0c04eb964b2d3815
Call "vmctl stop" on each VM at shutdown, for OpenBSD guests this means they
are signalled to shutdown cleanly. Wait for each to finish to avoid too much
busy work at once; this may need revising if it turns out to be too slow with
a larger number of VMs (e.g. signal/delay/signal/delay/... then wait for
shutdowns), but let's avoid making it more complex unless we know it's needed.

Based on a diff from abieber@, discussed with mlarkin@ aja@ rpe@, ok rpe
etc/rc.d/vmd