Skip to content

Commit

Permalink
make sure the process runs as pid 0 to allow docker to stop the conta…
Browse files Browse the repository at this point in the history
…indr
  • Loading branch information
czarly committed Mar 6, 2025
1 parent f708f65 commit 487aca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goat/mainnet/node-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ echo "Starting initialization steps..."
# Check if the genesis.json file exists; if not, initialize and copy it
if [ ! -f /goat/config/genesis.json ]; then
echo "Initializing goatd..."
goatd init --home /goat mainnet
exec goatd init --home /goat mainnet
echo "Copying genesis file..."
cp /genesis/goat.json /goat/config/genesis.json
else
echo "Genesis file already exists; skipping initialization."
fi

# Pass control to the final command specified in docker-compose.yml
goatd start --home /goat --chain-id=goat-mainnet --goat.geth /geth/geth.ipc --api.enable --api.address=tcp://0.0.0.0:1317 --p2p.external-address $IP:40258 --p2p.laddr 0.0.0.0:40258
exec goatd start --home /goat --chain-id=goat-mainnet --goat.geth /geth/geth.ipc --api.enable --api.address=tcp://0.0.0.0:1317 --p2p.external-address $IP:40258 --p2p.laddr 0.0.0.0:40258

0 comments on commit 487aca2

Please sign in to comment.