diff --git a/software/slaprunner/instance-runner.cfg b/software/slaprunner/instance-runner.cfg index e80e32d31a1e07e2d346f2fb6b21c6bb4ef842a3..a809713eee8d8787d8a5a06e50cf9cb1eafcb764 100644 --- a/software/slaprunner/instance-runner.cfg +++ b/software/slaprunner/instance-runner.cfg @@ -250,7 +250,7 @@ context = key shellinabox_port shellinabox:port section param_nginx_frontend nginx-frontend section param_tempdir tempdirectory - key socket gunicorn-frontend:socket + key socket gunicorn:socket [nginx-launcher] recipe = slapos.recipe.template:jinja2 @@ -264,7 +264,7 @@ context = #-- #-- WSGI -[gunicorn-frontend] +[gunicorn] bin_gunicorn = $${directory:bin}/gunicorn bin_launcher = $${directory:services}/gunicorn path_shell = ${dash:location}/bin/dash @@ -273,14 +273,14 @@ path_pid = $${directory:run}/gunicorn.pid [gunicorn-launcher] recipe = slapos.cookbook:wrapper -command-line = $${gunicorn-frontend:bin_gunicorn} slapos.runner:app -p $${gunicorn-frontend:path_pid} -b unix:$${gunicorn-frontend:socket} -e RUNNER_CONFIG=$${slaprunner:slapos.cfg} --preload -wrapper-path = $${gunicorn-frontend:bin_launcher} +command-line = $${gunicorn:bin_gunicorn} slapos.runner:app -p $${gunicorn:path_pid} -b unix:$${gunicorn:socket} -e RUNNER_CONFIG=$${slaprunner:slapos.cfg} --preload +wrapper-path = $${gunicorn:bin_launcher} environment = PATH=$${environ:PATH} RUNNER_CONFIG=$${slaprunner:slapos.cfg} [gunicorn-graceful] recipe = slapos.cookbook:wrapper -command-line = $${directory:bin}/killpidfromfile $${gunicorn-frontend:path_pid} SIGHUP +command-line = $${directory:bin}/killpidfromfile $${gunicorn:path_pid} SIGHUP wrapper-path = $${directory:scripts}/gunicorn-graceful #--------------------