未验证 提交 72068298 编写于 作者: E Eolink 提交者: GitHub

Merge pull request #33 from Dot-Liu/master

修改节点启动文件
...@@ -25,14 +25,12 @@ start() { ...@@ -25,14 +25,12 @@ start() {
fi fi
ADMIN=$1 ADMIN=$1
PORT=$2 INSTANCE=$2
if [[ "$PORT" = "" ]] ;then if [[ "INSTANCE" = "" ]] ;then
PORT=${ENV_PORT} PORT=${ENV_INSTANCE}
fi
if [[ "$PORT" = "" ]] ;then
PORT="6689"
fi fi
if [[ "$ADMIN" = "" ]] ; then if [[ "$ADMIN" = "" ]] ; then
ADMIN=${ENV_ADMIN} ADMIN=${ENV_ADMIN}
fi fi
...@@ -52,7 +50,7 @@ start() { ...@@ -52,7 +50,7 @@ start() {
else else
time=$(date "+%Y%m%d-%H%M%S") time=$(date "+%Y%m%d-%H%M%S")
## Change from /dev/null to something like /var/log/$PROG if you want to save output. ## Change from /dev/null to something like /var/log/$PROG if you want to save output.
nohup $PROG_PATH/$PROG --port=$PORT --admin=$ADMIN 2>&1 >"$WORK_PATH/logs/stdout-$PROG-$time.log" & pid=$! nohup $PROG_PATH/$PROG --instance=$INSTANCE --admin=$ADMIN 2>&1 >"$WORK_PATH/logs/stdout-$PROG-$time.log" & pid=$!
echo "$PROG started" echo "$PROG started"
echo $pid > "$WORK_PATH/$PROG.pid" echo $pid > "$WORK_PATH/$PROG.pid"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册