Commit c12fa76d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use cloudooo instead of oood.

* cloudoooctl cannot be used with supervisord, because it daemonise by itself.
* separating 'supervisor_programs' configuration for each cfg file is still not good, because it is added just by loading *.cfg, that is triggered by deployment.cfg, thus all supervisor_programs will be added even if we don't specify several parts in instance buildout.cfg.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41676 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2e7a860
...@@ -25,6 +25,9 @@ paths = ...@@ -25,6 +25,9 @@ paths =
[cloudooo-instance] [cloudooo-instance]
recipe = erp5.recipe.cloudoooinstance recipe = erp5.recipe.cloudoooinstance
depends =
${paster:eggs}
${create-log-directory:paths}
daemon = true # only true or false daemon = true # only true or false
conf-output = ${buildout:etc-directory}/cloudooo.conf conf-output = ${buildout:etc-directory}/cloudooo.conf
ctl-output = ${buildout:data-bin-directory}/cloudoooctl ctl-output = ${buildout:data-bin-directory}/cloudoooctl
...@@ -61,4 +64,4 @@ server-port = 8011 ...@@ -61,4 +64,4 @@ server-port = 8011
[configuration] [configuration]
supervisor_programs += supervisor_programs +=
30 cloudooo (autorestart=true stopsignal=1 stopwaitsecs=20) ${cloudooo-instance-template:ctl-output} 30 cloudooo ${buildout:bin-directory}/paster [serve ${cloudooo-instance:conf-output}]
...@@ -39,3 +39,7 @@ mysqld-extra-configuration = ...@@ -39,3 +39,7 @@ mysqld-extra-configuration =
[mysql-server-template] [mysql-server-template]
<= mysql-instance <= mysql-instance
[configuration]
supervisor_programs +=
10 mysql (autorestart=true) ${buildout:data-bin-directory}/pidproxy [ ${configuration:mysql_pid} ${buildout:data-bin-directory}/mysqld_safe ]
...@@ -44,3 +44,7 @@ update-command = ${:command} ...@@ -44,3 +44,7 @@ update-command = ${:command}
[conversion-server-template] [conversion-server-template]
<= oood-instance <= oood-instance
[configuration]
supervisor_programs +=
20 oood (autorestart=true stopsignal=TERM stopwaitsecs=30) ${buildout:data-bin-directory}/oood-runserw ${buildout:etc-directory}
# This Configuration file is used to to define a standard deployment, without # This Configuration file is used to to define a standard deployment, without
# any create instances. This should create the basic services required for run # any create instances. This should create the basic services required for run
# one ERP5 instance, like MySQL server, Oood and so on. For use this configuration # one ERP5 instance, like MySQL server, CloudOoo and so on. For use this
# it is required build a software home previously. # configuration # it is required build a software home previously.
[buildout] [buildout]
extends = extends =
...@@ -11,7 +11,6 @@ extends = ...@@ -11,7 +11,6 @@ extends =
../instance-profiles/memcached.cfg ../instance-profiles/memcached.cfg
../instance-profiles/mysql-database.cfg ../instance-profiles/mysql-database.cfg
../instance-profiles/mysql.cfg ../instance-profiles/mysql.cfg
../instance-profiles/oood.cfg
../instance-profiles/sphinx.cfg ../instance-profiles/sphinx.cfg
../instance-profiles/supervisor.cfg ../instance-profiles/supervisor.cfg
../instance-profiles/testing.cfg ../instance-profiles/testing.cfg
...@@ -24,7 +23,7 @@ extends = ...@@ -24,7 +23,7 @@ extends =
parts = parts =
eggs eggs
mysql-instance mysql-instance
oood-instance cloudooo-instance
supervisor-instance supervisor-instance
memcached-instance memcached-instance
...@@ -97,11 +96,6 @@ eggs = ...@@ -97,11 +96,6 @@ eggs =
extra-paths = extra-paths =
${itools:lib} ${itools:lib}
[configuration]
supervisor_programs =
10 mysql (autorestart=true) ${buildout:data-bin-directory}/pidproxy [ ${configuration:mysql_pid} ${buildout:data-bin-directory}/mysqld_safe ]
20 oood (autorestart=true stopsignal=TERM stopwaitsecs=30) ${buildout:data-bin-directory}/oood-runserw ${buildout:etc-directory}
#[software-links] #[software-links]
#recipe = plone.recipe.command #recipe = plone.recipe.command
#command = #command =
......
...@@ -22,7 +22,7 @@ extends = ...@@ -22,7 +22,7 @@ extends =
parts = parts =
software-links software-links
mysql-instance mysql-instance
oood-instance cloudooo-instance
supervisor-instance supervisor-instance
memcached-instance memcached-instance
......
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