Created
December 9, 2016 22:53
-
-
Save hvelarde/2d8b27d6ef6721191efb91e4879cdb9c to your computer and use it in GitHub Desktop.
Typical buildout configuration to add support for Supervisor process control system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
parts += | |
supervisor | |
supervisor-cron | |
[supervisor] | |
recipe = collective.recipe.supervisor | |
plugins = superlance | |
user = admin | |
password = admin | |
programs = | |
10 zeoserver (startsecs=5) ${buildout:bin-directory}/zeoserver | |
20 instance1 (startsecs=30) ${buildout:bin-directory}/instance1 [console] ${instance1:location} true | |
20 instance2 (startsecs=30) ${buildout:bin-directory}/instance2 [console] ${instance2:location} true | |
groups = 20 app instance1,instance2 | |
eventlisteners = | |
memmon TICK_60 ${buildout:bin-directory}/memmon [-g app=1GB] | |
httpok1 (startsecs=600) TICK_3600 ${buildout:bin-directory}/httpok [-p app:instance1 -t 30 http://127.0.0.1:8081/] | |
httpok2 (startsecs=600) TICK_3600 ${buildout:bin-directory}/httpok [-p app:instance2 -t 30 http://127.0.0.1:8082/] | |
logfile_maxbytes = 10MB | |
logfile_backups = 7 | |
loglevel = info | |
[supervisor-cron] | |
recipe = z3c.recipe.usercrontab | |
times = @reboot | |
command = ${buildout:directory}/bin/supervisord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment