4 ms·
It also has the added advantage of stopping (and presumably automatically restarting, or at least triggering an alarm) a container when the service dies, someth
by sneak 13y ago
It also has the added advantage of stopping (and presumably automatically restarting, or at least triggering an alarm) a container when the service dies, something a daemonized version with a "while true; sleep" one would not.
This is something baked into the design of djb's daemontools (as well as later efforts in that realm like launchd and upstart), something the traditional shell-script startup stuff always got wrong.
Failure detection is your friend.