agentRestartExitCode top-level constant
int
const agentRestartExitCode
The exit code an agent leaves with when the Hub asked it to restart.
Non-zero on purpose, and that is the whole mechanism: a supervisor set to
restart on failure (Restart=on-failure, Docker's restart: on-failure)
brings the agent back, while the clean exit after a shutdown leaves it
stopped. 75 is EX_TEMPFAIL — "temporary failure, try again" — which is
precisely what a restart request is.
Implementation
const int agentRestartExitCode = 75;