2020-03-23 18:05:39 +00:00
|
|
|
#!/bin/sh
|
2020-05-01 15:49:07 +00:00
|
|
|
|
2020-09-06 09:32:11 +00:00
|
|
|
echo "Beginning the ipld-eth-server process"
|
2020-03-25 20:14:48 +00:00
|
|
|
|
2023-01-25 22:10:29 +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
|
2020-09-06 09:32:11 +00:00
|
|
|
echo "ipld-eth-server startup failed"
|
2020-03-23 18:05:39 +00:00
|
|
|
exit 1
|
|
|
|
fi
|