The runtime can shutdown your server app for a number of reason during its operation. You are able to execute custom logic during before the application is shutdown by subscribing to the
- NODE_SHUTDOWN : The Stormancer node running the host was shutdown
- HOSTALREADYSTARTED : Another host instance is already running for this deployment. (This may happen if two hosts managed to start concurrently. You shouldn't see this shutdown reason in normal circonstances)
- HOST_INACTIVITY : The host was shutdown after the configured period of inactivity (Defaults to 5 minutes)
- SCENE_INACTIVITY : The scene was shutdown after a period of inactivity.