You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
-
- HOME=$(cd `dirname $0`;cd ../; pwd)
- PEER=$(ls $HOME/system | grep deploy-peer-)
- PROC_INFO=$HOME/system/$PEER" -home="$HOME" -c "$HOME/config/ledger-binding.conf" -p 7080"
- #echo $PROC_INFO
- #get PID
- PID=`ps -ef | grep "$PROC_INFO" | grep -v grep | awk '{print $2}'`
- #echo $PID
- if [[ ! -z $PID ]]
- then
- echo "process already exists,please check... If necessary, you should kill the process first."
- exit
- fi
- if [ ! -n "$PEER" ]; then
- echo "Peer Is Null !!!"
- else
- nohup java -jar -server -Xmx1g -Xms1g -Djdchain.log=$HOME $PROC_INFO $* >$HOME/bin/peer.out 2>&1 &
- fi
|