Improve entrypoint to be more helpful #63
@ -3,17 +3,21 @@
|
|||||||
sleep 10
|
sleep 10
|
||||||
echo "Starting ipld-eth-beacon-indexer"
|
echo "Starting ipld-eth-beacon-indexer"
|
||||||
|
|
||||||
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json
|
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json > /root/ipld-eth-beacon-indexer.output
|
||||||
|
|
||||||
/root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json
|
/root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json > /root/ipld-eth-beacon-indexer.output
|
||||||
rv=$?
|
rv=$?
|
||||||
|
|
||||||
if [ $rv != 0 ]; then
|
if [ $rv != 0 ]; then
|
||||||
echo "ipld-eth-beacon-indexer startup failed"
|
echo "ipld-eth-beacon-indexer failed"
|
||||||
echo 1 > /root/HEALTH
|
echo $rv > /root/HEALTH
|
||||||
|
echo $rv
|
||||||
|
cat /root/ipld-eth-beacon-indexer.output
|
||||||
else
|
else
|
||||||
echo "ipld-eth-beacon-indexer startup succeeded"
|
echo "ipld-eth-beacon-indexer succeeded"
|
||||||
echo 0 > /root/HEALTH
|
echo $rv > /root/HEALTH
|
||||||
|
echo $rv
|
||||||
|
cat /root/ipld-eth-beacon-indexer.output
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tail -f /dev/null
|
tail -f /dev/null
|
Loading…
Reference in New Issue
Block a user