Created
April 2, 2018 06:15
-
-
Save mylxsw/d4847c55c44dd545276fb8e1480d3fce to your computer and use it in GitHub Desktop.
monitoring supervisor FATAL task, and restart it automatically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
supervisorctl status | grep FATAL | awk '{print $1}' | awk -F ':' '{print $1 ":*"}' | uniq | xargs -I {} supervisorctl restart {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cron task