summaryrefslogtreecommitdiffstats
path: root/tools/kingbird/install_kingbird.sh
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-03-20 12:55:49 +0100
committerChaoyi Huang <joehuang@huawei.com>2017-03-23 01:17:30 +0000
commit76424ae12f826fec288e6ee1dab1b2845e6adabe (patch)
treebe34a83dd4e81c70c8733814be33906ea77e6d1d /tools/kingbird/install_kingbird.sh
parent686bdfb3fd6223860746a77c657d5f0369a5d816 (diff)
Add firewall rules before restarting haproxy
Change-Id: Idf456f13189c7e7b458f8be1a655cf0f025abb59 Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com> (cherry picked from commit a62c7ca2d161e922497265c16a868178d6d606e5)
Diffstat (limited to 'tools/kingbird/install_kingbird.sh')
-rwxr-xr-xtools/kingbird/install_kingbird.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh
index 7480e59..17bf41f 100755
--- a/tools/kingbird/install_kingbird.sh
+++ b/tools/kingbird/install_kingbird.sh
@@ -171,6 +171,9 @@ 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
+# Configure iptables
+iptables -I INPUT -p tcp -m multiport --dports 8118 -m comment --comment "410 kingbird" -j ACCEPT
+
# Configure haproxy
cat > /etc/haproxy/conf.d/180-kingbird-api.cfg <<EOF
@@ -190,9 +193,6 @@ EOF
service haproxy restart
-# Configure iptables
-iptables -I INPUT -p tcp -m multiport --dports 8118 -m comment --comment "410 kingbird" -j ACCEPT
-
# Run kingbird
mkdir -p /var/log/kingbird