-
-
Save yfix/63097fd82fb51e520f43f0cb364369c1 to your computer and use it in GitHub Desktop.
auto-reload supervisord config on changes
This file contains hidden or 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/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