This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
scripts to stop/start groups
pull/113/head
Jae Kwon
9 years ago
parent
84705caefb
commit
002d7c5475
3 changed files
with
19 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-0
scripts/unsafe_reset_net.sh
+10
-0
scripts/unsafe_start_group.sh
+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"
Write
Preview
Loading…
Cancel
Save