Created
August 5, 2019 22:48
-
-
Save bensig/df6808ca78f59a75898bf49a08a7b326 to your computer and use it in GitHub Desktop.
EOS nodeos start script with variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NODEOS=~/src/eos/build/programs/nodeos/nodeos | |
DATADIR=~/node | |
GENESIS=~/src/eos/genesis.json | |
CONFIG="config.ini" | |
$DATADIR/stop.sh || true | |
TIMESTAMP=$(/bin/date +%s) | |
$NODEOS --data-dir $DATADIR --config-dir $DATADIR -c $CONFIG "$@" >> $DATADIR/stdout.txt 2>> $DATADIR/eos-$TIMESTAMP.log & echo $! > $DATADIR/nodeos.pid | |
/usr/bin/unlink $DATADIR/eos.log | |
/bin/ln -s $DATADIR/eos-$TIMESTAMP.log $DATADIR/eos.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pair with stop script
https://gist.github.com/bensig/9e82f9901c9cc90efab92bf948e5aaaa