Supervisor: Difference between revisions

From Wiki
Jump to navigation Jump to search
No edit summary
Line 18: Line 18:
supervisorctl restart my_app
supervisorctl restart my_app
</pre>
</pre>
Important note on reloading supervisor config files:
http://www.onurguzel.com/supervisord-restarting-and-reloading/
https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps

Revision as of 19:24, 30 January 2015

Supervisor is a process management system. I use it for managing docker containers in production.

Install

Install supervisor package under Ubuntu.

Configure

Ubuntu installs a central configuration file at /etc/supervisor/supervisor.conf. Leave this alone. Add your own service configuration to /etc/supervisor/conf.d/my_app.conf:

[program:my_app]
autostart = true
autorestart = true
command = fig -f /root/fig/my_app.yml up

Management

supervisorctl restart my_app

Important note on reloading supervisor config files: http://www.onurguzel.com/supervisord-restarting-and-reloading/

https://www.digitalocean.com/community/tutorials/how-to-install-and-manage-supervisor-on-ubuntu-and-debian-vps