I have a script that I've written that needs to run during shutdown which brings down my vagrant instance. The script runs without issue, and I echo output to stdout (and to a file) of the process.
The script outputs the following:
Shutting down vagrant
==> default: Attempting graceful shutdown of VM...
Vagrant shut down
However, when this runs from a computer shutdown (rc0) or reboot (rc6), the terminal logs the first two lines and then moves on without shutting down vagrant.