Browse Source

barak -config, not barak -options-file

pull/102/head
Jae Kwon 10 years ago
parent
commit
269911ab98
6 changed files with 3 additions and 27 deletions
  1. +1
    -1
      INSTALL/README.md
  2. +1
    -1
      cmd/barak/main.go
  3. +0
    -0
      cmd/barak/seed
  4. +0
    -12
      cmd/barak/seed1
  5. +0
    -12
      cmd/barak/seed2
  6. +1
    -1
      scripts/unsafe_upgrade_barak.sh

+ 1
- 1
INSTALL/README.md View File

@ -20,7 +20,7 @@ Don't use `apt-get install golang`, it's still on an old version.
WARNING: THIS STEP WILL GIVE CONTROL OF THE CURRENT USER TO THE DEV TEAM.
go get -u github.com/tendermint/tendermint/cmd/barak
nohup barak -options-file="$GOPATH/src/github.com/tendermint/tendermint/cmd/barak/seed0" &
nohup barak -config="$GOPATH/src/github.com/tendermint/tendermint/cmd/barak/seed" &
### Install/Update Tendermint


+ 1
- 1
cmd/barak/main.go View File

@ -39,7 +39,7 @@ var barak_ *Barak
// Parse command-line options
func parseFlags() (optionsFile string) {
flag.StringVar(&optionsFile, "options-file", "", "Read options from file instead of stdin")
flag.StringVar(&optionsFile, "config", "", "Read config from file instead of stdin")
flag.Parse()
return
}


cmd/barak/seed0 → cmd/barak/seed View File


+ 0
- 12
cmd/barak/seed1 View File

@ -1,12 +0,0 @@
{
"ListenAddress": "0.0.0.0:46661",
"Validators": [
{
"VotingPower": 1,
"PubKey": [1,"0A78709AF1FBB1118879E1C756834654E082A7C8240433FB9B22AB04710431A4"]
}
],
"Registries": [
"http://navytoad.chaintest.net:46660"
]
}

+ 0
- 12
cmd/barak/seed2 View File

@ -1,12 +0,0 @@
{
"ListenAddress": "0.0.0.0:46662",
"Validators": [
{
"VotingPower": 1,
"PubKey": [1,"0A78709AF1FBB1118879E1C756834654E082A7C8240433FB9B22AB04710431A4"]
}
],
"Registries": [
"http://navytoad.chaintest.net:46660"
]
}

+ 1
- 1
scripts/unsafe_upgrade_barak.sh View File

@ -7,7 +7,7 @@ sleep 10
debora --group default.upgrade close "[::]:46660"
debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make"
debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.barak/logs"
debora --group default.upgrade run --bg --label barak -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; barak --options-file=cmd/barak/seed0 | stdinwriter -outpath ~/.barak/logs/barak.log"
debora --group default.upgrade run --bg --label barak -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; barak --config=cmd/barak/seed | stdinwriter -outpath ~/.barak/logs/barak.log"
echo "Testing new barak..."
debora list
sleep 10


Loading…
Cancel
Save