Created
October 5, 2015 16:54
-
-
Save cgoldberg/06191e9a3aca3e77e264 to your computer and use it in GitHub Desktop.
bounce supervisor controlled services
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
#!/bin/bash | |
# Bounce services and print start/stop messages to console and /var/log/syslog. | |
logger -s Restarting all processes controlled by supervisor now... | |
logger -s $(/usr/bin/supervisorctl restart all) | |
# Scheduled by system cron to run every hour: | |
# 0 */1 * * * /deploy/bounce_services.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment