aboutsummaryrefslogtreecommitdiff
path: root/docker/rabbitmq/start.sh
blob: 749bee96337753aa16b2cb49d4433dd75193962a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

set -o errexit

CMD="/usr/sbin/rabbitmq-server"
ARGS=""

# loading common functions
source /opt/kolla/kolla-common.sh

# Execute config strategy
set_configs

# loading functions
source /opt/kolla/config-rabbit.sh

# This catches all cases of the BOOTSTRAP variable being set, including empty
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
    set_rabbitmq_cookie
    exit 0
fi

$CMD $ARGS