2022-04-22 12:31:57 +00:00
|
|
|
#!/bin/bash
|
2022-05-06 15:03:15 +00:00
|
|
|
|
|
|
|
sleep 10
|
2022-04-22 12:31:57 +00:00
|
|
|
echo "Starting ipld-ethcl-indexer"
|
|
|
|
|
2022-05-06 15:03:15 +00:00
|
|
|
echo /root/ipld-ethcl-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\
|
|
|
|
--t.skipSync=$SKIP_SYNC
|
2022-04-22 12:31:57 +00:00
|
|
|
|
2022-05-06 15:03:15 +00:00
|
|
|
/root/ipld-ethcl-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 \
|
|
|
|
--t.skipSync=$SKIP_SYNC
|
2022-04-22 12:31:57 +00:00
|
|
|
|
|
|
|
rv=$?
|
|
|
|
|
|
|
|
if [ $rv != 0 ]; then
|
|
|
|
echo "ipld-ethcl-indexer startup failed"
|
2022-05-06 15:03:15 +00:00
|
|
|
echo 1 > /root/HEALTH
|
|
|
|
else
|
|
|
|
echo "ipld-ethcl-indexer startup succeeded"
|
|
|
|
echo 0 > /root/HEALTH
|
2022-04-22 12:31:57 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
tail -f /dev/null
|