From 8210fe90eaff71d5c78cec07e0172444e8b3de97 Mon Sep 17 00:00:00 2001 From: Matej Cotman Date: Wed, 15 Jan 2014 21:18:11 +0100 Subject: production environment with supervisor and crontab --- production.cfg | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'production.cfg') diff --git a/production.cfg b/production.cfg index c2a4f5a8d..b290c1a62 100644 --- a/production.cfg +++ b/production.cfg @@ -7,6 +7,8 @@ eggs = parts += pyscripts + supervisor + crontab_reboot [pyscripts] @@ -15,3 +17,20 @@ eggs = ${buildout:eggs} interpreter = py entry-points = searx-run=searx.webapp:run + + +[supervisor] +recipe = collective.recipe.supervisor +http-socket = unix +user = searxer +password = ohpleasedochangeme +file = /tmp/supervisor.sock +chmod = 0700 +programs = + 50 searx ${buildout:bin-directory}/searx-run + + +[crontab_reboot] +recipe = z3c.recipe.usercrontab +times = @reboot +command = ${buildout:bin-directory}/supervisord -- cgit v1.2.3