ipld-eth-server/entrypoint.sh

17 lines
511 B
Bash
Raw Normal View History

2020-03-23 18:05:39 +00:00
#!/bin/sh
2020-05-01 15:49:07 +00:00
echo "Beginning the ipld-eth-server process"
2020-03-25 20:14:48 +00:00
START_CMD="./ipld-eth-server"
if [ "true" == "$CERC_REMOTE_DEBUG" ] && [ -x "/usr/local/bin/dlv" ]; then
START_CMD="/usr/local/bin/dlv --listen=:40000 --headless=true --api-version=2 --accept-multiclient exec `pwd`/ipld-eth-server --continue --"
fi
echo running: $START_CMD ${VDB_COMMAND} --config=`pwd`/config.toml
$START_CMD ${VDB_COMMAND} --config=`pwd`/config.toml
2020-03-23 18:05:39 +00:00
rv=$?
if [ $rv != 0 ]; then
echo "ipld-eth-server startup failed"
2020-03-23 18:05:39 +00:00
exit 1
fi