From 37de0831718e5a4e54210462f501c97394803008 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Fri, 8 Dec 2017 17:15:09 +0000 Subject: autocommit Fri Dec 8 17:15:09 UTC 2017 --- templates/ci/openbook.gentoo | 8 +++++++- templates/ci/openbook.redhat | 3 +++ templates/ci/openbook.ubuntu | 3 +++ templates/ci/openbookctl | 20 +++++++++++++------- 4 files changed, 26 insertions(+), 8 deletions(-) (limited to 'templates/ci') diff --git a/templates/ci/openbook.gentoo b/templates/ci/openbook.gentoo index 430d70d..30f65f8 100755 --- a/templates/ci/openbook.gentoo +++ b/templates/ci/openbook.gentoo @@ -1,6 +1,6 @@ #!/sbin/openrc-run -extra_commands=test_database +extra_commands="debug test_database" depend() { need docker @@ -12,6 +12,12 @@ start() { eend $? } +debug() { + ebegin "Starting Openbook in debug mode" + /opt/openbook/openbookctl debug + eend $? +} + stop() { ebegin "Stopping Openbook" /opt/openbook/openbookctl stop diff --git a/templates/ci/openbook.redhat b/templates/ci/openbook.redhat index c4d3040..a240b79 100755 --- a/templates/ci/openbook.redhat +++ b/templates/ci/openbook.redhat @@ -17,6 +17,9 @@ case $1 in start*) /opt/openbook/openbookctl start ;; + debug*) + /opt/openbook/openbookctl debug + ;; stop*) /opt/openbook/openbookctl stop ;; diff --git a/templates/ci/openbook.ubuntu b/templates/ci/openbook.ubuntu index 02900fa..0689872 100755 --- a/templates/ci/openbook.ubuntu +++ b/templates/ci/openbook.ubuntu @@ -13,6 +13,9 @@ case $1 in start*) /opt/openbook/openbookctl start ;; + debug*) + /opt/openbook/openbookctl debug + ;; stop*) /opt/openbook/openbookctl stop ;; diff --git a/templates/ci/openbookctl b/templates/ci/openbookctl index 0563a16..b59d413 100755 --- a/templates/ci/openbookctl +++ b/templates/ci/openbookctl @@ -38,25 +38,25 @@ do_start() { ensure_openbook_databases_created {% endif %} {% if "True" == openbook_install_job_scheduler_server|string() %} - /opt/openbook/job_scheduler_server/run.sh + /opt/openbook/job_scheduler_server/run.sh ${@} {% endif %} {% if "True" == openbook_install_workflow_server|string() %} - /opt/openbook/workflow_server/run.sh + /opt/openbook/workflow_server/run.sh ${@} {% endif %} {% if "True" == openbook_install_admin_api_server|string() %} - /opt/openbook/admin_api_server/run.sh + /opt/openbook/admin_api_server/run.sh ${@} {% endif %} {% if "True" == openbook_install_customer_api_server|string() %} - /opt/openbook/customer_api_server/run.sh + /opt/openbook/customer_api_server/run.sh ${@} {% endif %} {% if "True" == openbook_install_admin_web_ui|string() %} - /opt/openbook/admin_web_ui/run.sh + /opt/openbook/admin_web_ui/run.sh ${@} {% endif %} {% if "True" == openbook_install_customer_web_ui|string() %} - /opt/openbook/customer_web_ui/run.sh + /opt/openbook/customer_web_ui/run.sh ${@} {% endif %} echo - echo "Openbook started. All components may not be fully initialized and available." + echo "Openbook started." } do_stop() { @@ -82,11 +82,14 @@ do_stop() { docker stop database {% endif %} docker container prune -f + echo + echo "Openbook stopped." } do_help() { echo "Usage:" echo " $0 start" + echo " $0 debug" echo " $0 stop" {% if "True" == openbook_install_database|string() %} echo " $0 test_database" @@ -97,6 +100,9 @@ case $1 in start*) do_start ;; + debug*) + do_start debug + ;; stop*) do_stop ;; -- cgit v1.3