Tuesday, September 10, 2013

Supervisor - Update config

After I changed the supervisor config file of an app, I restarted it, nothing change.

I figure out that the "restart" does not make configuration changes available. There are 2 way to update configuration changes:

1. Restart the supervisor service:

$ sudo service supervisor restart

2. Use the "update" parameter of supervisor. It will restart the applications which configuration has changed:

$ sudo supervisorctl update

Reference: http://www.onurguzel.com/supervisord-restarting-and-reloading/