Skip to content

Instantly share code, notes, and snippets.

@manishmore
Created August 11, 2020 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manishmore/985525a14ad3845cf18ecbe224cc4ab7 to your computer and use it in GitHub Desktop.
Save manishmore/985525a14ad3845cf18ecbe224cc4ab7 to your computer and use it in GitHub Desktop.
supervisord shell script
bash -c "sleep 1 && exit 0"
bash -c "sleep 5 && exit 0"
bash -c "sleep 1 && exit 1"
sh -c "sleep 10 && exit 1"
bash -c "if [ -f lock ]; then exit 1; fi; sleep 10 && touch lock && exit 1"
bash -c "if [ -f lock ]; then exit 1; fi; sleep 10 && touch lock && exit 1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment