Supervisor is a service that makes it easy to automatically start programs without needing to create rc.d scipts. In this article we look at how to install in on Gentoo Linux.

Supervisor is in portage as app-admin/supervisor. It will also install dev-python/meld3

Console - user@hostname ~ $

1
sudo emerge -av app-admin/supervisor

Supevisor will read /etc/supervisord.conf for the configuration. The file format is a windows INI style file. See the Configuration File page of the Supervisor documentation for details. For an example see Start with Supervisord section of HowTo: Install Netflix Prana.

To start Supervisor, can use the init script:

Console - user@hostname ~ $

1
sudo /etc/init.d/supervisord start

And so it will start up on the next reboot:

Console - user@hostname ~ $

1
rc-update add supervisord default

While the init script should be used rather than starting it directly, it can started up directly like so:

Console - user@hostname ~ $

1
sudo supervisord -c /etc/supervisord.conf

References

Comments