Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Commelina committed Aug 22, 2024
1 parent 3099145 commit aa8e41a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/fdb-hornbill/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ export FDB_NETWORKING_MODE="container"
export fdbcli="/usr/bin/fdbcli"

## start fdb server
/var/fdb/scripts/fdb.bash >> /tmp/$HOSTNAME.log 2>&1 &
/var/fdb/scripts/fdb.bash >>/tmp/$HOSTNAME.log 2>&1 &

## wait & configure
tail -f --retry $FDB_CLUSTER_FILE | sed '/./ q'
# Attempt to connect. Configure the database if necessary.
if ! $fdbcli -C $FDB_CLUSTER_FILE --exec status --timeout 1 ; then
if ! $fdbcli -C $FDB_CLUSTER_FILE --exec status --timeout 10 ; then
config="configure new single ssd; status"
if ! $fdbcli -C $FDB_CLUSTER_FILE --exec "$config" --timeout 10 ; then
echo "Unable to configure new FDB cluster."
Expand Down

0 comments on commit aa8e41a

Please sign in to comment.