I have process that needs arbitrary amount of time to shutdown, anywhere between 2 seconds and couple of minutes. It is important that this process exits gracefully (not killed). I use supervisord and ubuntu server to run it.
When the server get ACPI shutdown signal (reboot command from a VPS provider, that's what EC2 does I assume), will supervisord (and the whole system) wait for all the child processes to exit during shutdown sequence?