2022-04-22 12:31:57 +00:00
|
|
|
#!/bin/bash
|
2022-05-06 15:03:15 +00:00
|
|
|
|
|
|
|
sleep 10
|
2022-06-09 20:12:08 +00:00
|
|
|
echo "Starting ipld-eth-beacon-indexer"
|
2022-04-22 12:31:57 +00:00
|
|
|
|
2022-06-09 20:12:08 +00:00
|
|
|
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --db.address $DB_ADDRESS \
|
2022-04-22 12:31:57 +00:00
|
|
|
--db.password $DB_PASSWORD \
|
|
|
|
--db.port $DB_PORT \
|
|
|
|
--db.username $DB_USER \
|
|
|
|
--db.name $DB_NAME \
|
|
|
|
--db.driver $DB_DRIVER \
|
|
|
|
--bc.address $BC_ADDRESS \
|
|
|
|
--bc.port $BC_PORT \
|
2022-05-13 12:48:31 +00:00
|
|
|
--log.level $LOG_LEVEL\
|
2022-05-13 14:46:13 +00:00
|
|
|
--t.skipSync=$SKIP_SYNC \
|
|
|
|
--kg.increment $KNOWN_GAP_INCREMENT
|
2022-04-22 12:31:57 +00:00
|
|
|
|
2022-06-09 20:12:08 +00:00
|
|
|
/root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --db.address $DB_ADDRESS \
|
2022-04-22 12:31:57 +00:00
|
|
|
--db.password $DB_PASSWORD \
|
|
|
|
--db.port $DB_PORT \
|
|
|
|
--db.username $DB_USER \
|
|
|
|
--db.name $DB_NAME \
|
|
|
|
--db.driver $DB_DRIVER \
|
|
|
|
--bc.address $BC_ADDRESS \
|
|
|
|
--bc.port $BC_PORT \
|
2022-05-13 12:48:31 +00:00
|
|
|
--log.level $LOG_LEVEL \
|
2022-05-13 14:46:13 +00:00
|
|
|
--t.skipSync=$SKIP_SYNC \
|
|
|
|
--kg.increment $KNOWN_GAP_INCREMENT
|
2022-04-22 12:31:57 +00:00
|
|
|
|
|
|
|
rv=$?
|
|
|
|
|
|
|
|
if [ $rv != 0 ]; then
|
2022-06-09 20:12:08 +00:00
|
|
|
echo "ipld-eth-beacon-indexer startup failed"
|
2022-05-06 15:03:15 +00:00
|
|
|
echo 1 > /root/HEALTH
|
|
|
|
else
|
2022-06-09 20:12:08 +00:00
|
|
|
echo "ipld-eth-beacon-indexer startup succeeded"
|
2022-05-06 15:03:15 +00:00
|
|
|
echo 0 > /root/HEALTH
|
2022-04-22 12:31:57 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
tail -f /dev/null
|