make sure the process id is 0 by using exec

This commit is contained in:
Sebastian
2025-03-06 05:06:26 +01:00
parent 05f6f36eb4
commit f708f65cfc

View File

@@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
if [ ! -d "/root/.ethereum/geth/chaindata" ]; then if [ ! -d "/root/.ethereum/geth/chaindata" ]; then
geth init /genesis/geth.json exec geth init /genesis/geth.json
else else
echo "Chain already initialized." echo "Chain already initialized."
fi fi
geth --goat=mainnet exec geth --goat=mainnet