Commit 17e06b4a authored by Łukasz Nowak's avatar Łukasz Nowak

- put configuration of all services in common [configuration] part


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31973 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec572b0d
...@@ -28,7 +28,7 @@ products += ${products-development:location} ...@@ -28,7 +28,7 @@ products += ${products-development:location}
# Format: # Format:
# database[@host[:port]] [user [password [unix_socket]]] # database[@host[:port]] [user [password [unix_socket]]]
# e.g "erp5db erp5user somepassword" or "erp5db erp5user" # e.g "erp5db erp5user somepassword" or "erp5db erp5user"
erp5_sql_connection_string = test@${hosts:mysql}:${ports:mysql} root erp5_sql_connection_string = test@${configuration:mysql_host}:${configuration:mysql_port} root
bt5 = bt5 =
erp5_base erp5_base
erp5_forge erp5_forge
...@@ -10,11 +10,9 @@ parts = ...@@ -10,11 +10,9 @@ parts =
mysql-instance mysql-instance
start-mysql-instance start-mysql-instance
[ports] [configuration]
mysql = 10002 mysql_port = 10002
mysql_host = 127.0.0.1
[hosts]
mysql = 127.0.0.1
[mysql-bin] [mysql-bin]
recipe = collective.recipe.template recipe = collective.recipe.template
......
#!/bin/sh #!/bin/sh
${software_definition:mysql_software}/bin/mysql --no-defaults --protocol=tcp --host=${hosts:mysql} --port=${ports:mysql} $@ ${software_definition:mysql_software}/bin/mysql --no-defaults --protocol=tcp --host=${configuration:mysql_host} --port=${configuration:mysql_port} $@
#!/bin/sh #!/bin/sh
${software_definition:mysql_software}/bin/mysqladmin --no-defaults --protocol=tcp --host=${hosts:mysql} --port=${ports:mysql} $@ ${software_definition:mysql_software}/bin/mysqladmin --no-defaults --protocol=tcp --host=${configuration:mysql_host} --port=${configuration:mysql_port} $@
#!/bin/sh #!/bin/sh
${software_definition:mysql_software}/bin/mysqld_safe --no-defaults --port=${ports:mysql} --pid-file=${mycnf:pid} --log-error=${mycnf:err} --basedir=${mycnf:basedir} --datadir=${mycnf:datadir} --socket=${mycnf:sock} ${software_definition:mysql_software}/bin/mysqld_safe --no-defaults --port=${configuration:mysql_port} --pid-file=${mycnf:pid} --log-error=${mycnf:err} --basedir=${mycnf:basedir} --datadir=${mycnf:datadir} --socket=${mycnf:sock}
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