-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify README.md build_chain.sh sdk.sh start.sh and stop.sh
- Loading branch information
caryliao
committed
Oct 8, 2018
1 parent
1e23b9a
commit 7c3305e
Showing
8 changed files
with
41 additions
and
41 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/sh | ||
|
||
setsid `pwd`/fisco-bcos --config config.conf --genesis genesis.json > fisco-bcos.log 2>&1 & | ||
#!/bin/bash | ||
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) | ||
fisco_bcos=${SHELL_FOLDER}/fisco-bcos | ||
cd ${SHELL_FOLDER} | ||
nohup setsid $fisco_bcos --config config.conf --genesis genesis.json& | ||
echo "waiting..." | ||
sleep 5 | ||
tail -f `pwd`/log/info* |grep ++++ | ||
tail -f ${SHELL_FOLDER}/log/info* |grep ++++ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
#! /bin/sh | ||
#stop fisco-bcos | ||
name=`pwd`/fisco-bcos | ||
agent_pid=`ps aux|grep "$name"|grep -v grep|awk '{print $2}'` | ||
kill_cmd="kill -9 ${agent_pid}" | ||
echo "${kill_cmd}" | ||
eval ${kill_cmd} | ||
|
||
#stop tail -f log | ||
name=`pwd`/log/info | ||
agent_pid=`ps aux|grep "$name"|grep -v grep|awk '{print $2}'` | ||
kill_cmd="kill -9 ${agent_pid}" | ||
echo "${kill_cmd}" | ||
eval ${kill_cmd} | ||
#!/bin/bash | ||
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd) | ||
fisco_bcos=${SHELL_FOLDER}/fisco-bcos | ||
weth_pid=`ps aux|grep "${fisco_bcos}"|grep -v grep|awk '{print $2}'` | ||
kill -9 ${weth_pid} |