Skip to content

Instantly share code, notes, and snippets.

@yfix
Forked from DerMitch/autoreload_supervisor.sh
Created August 24, 2016 10:38
Show Gist options
  • Save yfix/63097fd82fb51e520f43f0cb364369c1 to your computer and use it in GitHub Desktop.
Save yfix/63097fd82fb51e520f43f0cb364369c1 to your computer and use it in GitHub Desktop.
auto-reload supervisord config on changes
#!/bin/sh
# auto-reload supervisor config on a config file change
# Licensed under Public Domain
# apt-get install inotify-tools
while true; do
inotifywait --quiet --recursive --event create,close_write /etc/supervisor/
supervisorctl reread
supervisorctl update
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment