Skip to content

Instantly share code, notes, and snippets.

@cgoldberg
Created October 5, 2015 16:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cgoldberg/06191e9a3aca3e77e264 to your computer and use it in GitHub Desktop.
Save cgoldberg/06191e9a3aca3e77e264 to your computer and use it in GitHub Desktop.
bounce supervisor controlled services
#!/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