For my particular use case, I liked to use
docker-compose up
to provide retry logic for a couple of apps.
When shifting gears and pivoting to easy to use CDN infrastructure, it seems as if running shell commands to start everything up in a single docker container will be simpler.
However, the only thing I have found that corresponds to anything like "always up" logic is:
while true; do start-app || sleep 1; done
What I was curious about was if there is truly some sort of Unix/BASH 'retry' tool that will make sure a command is always running in addition to whatever the useful features there are for that kind of system-level operation?
Asked by Chris
(1075 rep)
Jan 11, 2021, 09:41 PM
Last activity: Jan 5, 2023, 02:43 PM
Last activity: Jan 5, 2023, 02:43 PM