2022-04-22 12:31:57 +00:00
|
|
|
#!/bin/bash
|
2022-05-06 15:03:15 +00:00
|
|
|
|
|
|
|
sleep 10
|
2022-06-09 21:32:46 +00:00
|
|
|
echo "Starting ipld-eth-beacon-indexer"
|
2022-04-22 12:31:57 +00:00
|
|
|
|
2022-06-10 13:30:52 +00:00
|
|
|
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json
|
2022-04-22 12:31:57 +00:00
|
|
|
|
2022-06-10 13:30:52 +00:00
|
|
|
/root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json
|
2022-04-22 12:31:57 +00:00
|
|
|
rv=$?
|
|
|
|
|
|
|
|
if [ $rv != 0 ]; then
|
2022-06-09 21:32:46 +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 21:32:46 +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
|