From a668bff893aa303d371e59692d70ded31e29bbf1 Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Thu, 23 Feb 2017 14:21:55 +0100 Subject: Fix installation script Remove the check if kingbird is running. Remove nohup from service startup. Change-Id: I85e4e1fd8be47440c4d3f81229970b084dd5cb08 JIRA: MULTISITE-35 Signed-off-by: Dimitri Mazmanov --- tools/kingbird/install_kingbird.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh index 8fb7a32..4842db0 100755 --- a/tools/kingbird/install_kingbird.sh +++ b/tools/kingbird/install_kingbird.sh @@ -116,7 +116,7 @@ if [ $? -eq 0 ]; then else echo "Creating Kingbird endpoints.." openstack service create --name=kingbird --description="Kingbird" multisite - + openstack endpoint create kingbird public http://${KINGBIRD_PUBLIC_URL}:${KINGBIRD_PORT}/${KINGBIRD_VERSION} --region ${OS_REGION_NAME} openstack endpoint create kingbird admin http://${KINGBIRD_ADMIN_URL}:${KINGBIRD_PORT}/${KINGBIRD_VERSION} --region ${OS_REGION_NAME} openstack endpoint create kingbird internal http://${KINGBIRD_INTERNAL_URL}:${KINGBIRD_PORT}/${KINGBIRD_VERSION} --region ${OS_REGION_NAME} @@ -169,13 +169,10 @@ iniset ${KINGBIRD_CONF_FILE} database connection "mysql://$mysql_user:$mysql_pas iniset ${KINGBIRD_CONF_FILE} database max_overflow -1 iniset ${KINGBIRD_CONF_FILE} database max_pool_size 1000 -# Kill kingbird -if pgrep kingbird-api &> /dev/null ; then pkill -f kingbird-api ; fi -if pgrep kingbird-engine &> /dev/null ; then pkill -f kingbird-engine ; fi # Run kingbird mkdir -p /var/log/kingbird kingbird-manage --config-file ${KINGBIRD_CONF_FILE} db_sync -nohup kingbird-engine --config-file ${KINGBIRD_CONF_FILE} --log-file /var/log/kingbird/kingbird-engine.log & -nohup kingbird-api --config-file ${KINGBIRD_CONF_FILE} --log-file /var/log/kingbird/kingbird-api.log & +kingbird-engine --config-file ${KINGBIRD_CONF_FILE} --log-file /var/log/kingbird/kingbird-engine.log & +kingbird-api --config-file ${KINGBIRD_CONF_FILE} --log-file /var/log/kingbird/kingbird-api.log & -- cgit 1.2.3-korg