make sure the process id is 0 by using exec
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
if [ ! -d "/root/.ethereum/geth/chaindata" ]; then
|
||||
geth init /genesis/geth.json
|
||||
exec geth init /genesis/geth.json
|
||||
else
|
||||
echo "Chain already initialized."
|
||||
fi
|
||||
|
||||
geth --goat=mainnet
|
||||
exec geth --goat=mainnet
|
||||
|
||||
Reference in New Issue
Block a user