Closed jakajancar closed 9 years ago
This isn't handled in bhyve either.
This is expected. The current model in bhyve is to restart the process, rather than resetting the device state. xhyve
will give you a different exit code depending on the shutdown event (VM_SUSPEND_RESET
, VM_SUSPEND_POWEROFF
, VM_SUSPEND_TRIPLEFAULT
, ...).
This is typically handled by the run scripts. For example: http://people.freebsd.org/~neel/bhyve/vmrun.sh
Ah, that works. Perhaps even better to leave the caller in control. Thanks.
Doing a "sudo reboot" causes the app to exit, not reboot: