Commit 951600d3 authored by Łukasz Nowak's avatar Łukasz Nowak

- allow to start/stop supervisor from buildout command


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32699 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0fc6df67
...@@ -6,6 +6,24 @@ parts = ...@@ -6,6 +6,24 @@ parts =
supervisor_port = 9001 supervisor_port = 9001
supervisor_host = 127.0.0.1 supervisor_host = 127.0.0.1
[supervisor-start]
depends = ${supervisor-instance:command}
recipe = plone.recipe.command
command =
${buildout:data-bin-directory}/supervisord
sleep 5
update-command = ${:command}
[supervisor-stop]
depends = ${supervisor-instance:command}
recipe = plone.recipe.command
command =
${buildout:data-bin-directory}/supervisorctl shutdown
sleep 5
update-command = ${:command}
[supervisor-instance] [supervisor-instance]
depends = ${supervisor:recipe} depends = ${supervisor:recipe}
recipe = plone.recipe.command recipe = plone.recipe.command
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment