Browse Source

scripts to stop/start groups

pull/113/head
Jae Kwon 9 years ago
parent
commit
002d7c5475
3 changed files with 19 additions and 0 deletions
  1. +0
    -0
      scripts/unsafe_reset_net.sh
  2. +10
    -0
      scripts/unsafe_start_group.sh
  3. +9
    -0
      scripts/unsafe_stop_group.sh

scripts/unsafe_restart_net.sh → scripts/unsafe_reset_net.sh View File


+ 10
- 0
scripts/unsafe_start_group.sh View File

@ -0,0 +1,10 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
printf "Starting group $1...\n"
sleep 3
debora --group "$1" run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node | stdinwriter -outpath ~/.tendermint/logs/tendermint.log"
debora --group "$1" run --bg --label logjack -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; logjack -chopSize='10M' -limitSize='1G' ~/.tendermint/logs/tendermint.log"
printf "Done\n"

+ 9
- 0
scripts/unsafe_stop_group.sh View File

@ -0,0 +1,9 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
printf "Stopping group $1...\n"
sleep 3
debora --group "$1" run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint; killall logjack"
printf "Done\n"

Loading…
Cancel
Save