Installing Supervisor—a process manager
We have begun to accumulate quite a few of programs in our software stack.
In order to facilitate easy and consistent operation of these programs, we can use an excellent tool called Supervisor (http://supervisord.org) to help us.
As it so happens, there is a Buildout recipe to make configuration file generation easy called collective.recipe.supervisor (http://pypi.python.org/pypi/collective.recipe.supervisor). This one is too easy and simple to resist (hence its popularity).
In 06-deployment-optimization-supervisor.cfg
, we have:
[buildout] extends = 06-deployment-optimization-pound-config.cfg parts += supervisor [pound] directory = ${buildout:directory}/parts/pound-install__compile__ [supervisor] recipe = collective.recipe.supervisor programs = #Prio Name Program Params 00 zeo ${zeo:location}/bin/runzeo 00 instance1 ${instance1:location}/bin/runzope 00 instance2 ${instance2:location...