...
1#!/usr/bin/env bash
2
3set -e -u
4
5DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6
7# Start rsyslog. Note: Sometimes for unknown reasons /var/run/rsyslogd.pid is
8# already present, which prevents the whole container from starting. We remove
9# it just in case it's there.
10rm -f /var/run/rsyslogd.pid
11service rsyslog start
12
13# make sure we can reach the mysqldb.
14./test/wait-for-it.sh boulder-mysql 3306
15
16# make sure we can reach the proxysql.
17./test/wait-for-it.sh bproxysql 6032
18
19# create the database
20MYSQL_CONTAINER=1 $DIR/create_db.sh
21
22if [[ $# -eq 0 ]]; then
23 exec python3 ./start.py
24fi
25
26exec "$@"
View as plain text