States of a distributed application
ℹ️ Remember the The Eight Fallacies of Distributed Computing
Viewpoint: System Administrator
This a simplified state diagram of what we want. A Failed state should probably be added and ideally it should also be possible to recover and go back to Running or at least the Booted state.

Viewpoint: A common implementation
This diagram shows how this often is implemented. Note that there is a Failed state here, but the system cannot go anywhere from this state, thus requiring manual intervention.
NOT an especially good solution