I would like to write a script that first calls supervisorctl reload then it runs and runs again supervisorctl status until it returns a zero exit code.
What is the proper way of doing that?
>Solution :
# first calls supervisorctl reload
supervisorctl reload
# runs again supervisorctl status until it does not return a non-zero exit code.
while ! supervisorctl status; do
:
done