Created
October 31, 2013 15:33
-
-
Save DerMitch/7251790 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
In WSL 2 Docker container inotify is not working I'm not sure why/how to fix this just yet but it should be fixed in future versions.
For now I will just poll an md5 of the config sharing here in-case it helps anyone. Cheers for the example @DerMitch