Lifecycle
A service SHOULD define a startup command if it needs to initialise itself (for example, start a HTTP server).
Sample
| Field | Description |
|---|
startup | Startup configuration for your service| Field | Description |
|---|
command | The startup command to be executed. This command SHOULD open a tcp port for incoming HTTP connections - the desired way to communicate with your service. It may be either a string, or an array of strings. If absent, this defaults to tail -f /dev/null |
|
shutdown | Shutdown configuration for your service| Field | Description |
|---|
command | The shutdown command to execute when your service will be destroyed. If absent, a KILL signal will be sent to the startup command | timeout | The timeout to gracefully shutdown your service in seconds. Defaults to 300 seconds |
|