make sure the process id is 0 by using exec
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user