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

Merge pull request #33 from Dot-Liu/master

修改节点启动文件
......@@ -25,14 +25,12 @@ start() {
fi
ADMIN=$1
PORT=$2
INSTANCE=$2
if [[ "$PORT" = "" ]] ;then
PORT=${ENV_PORT}
fi
if [[ "$PORT" = "" ]] ;then
PORT="6689"
if [[ "INSTANCE" = "" ]] ;then
PORT=${ENV_INSTANCE}
fi
if [[ "$ADMIN" = "" ]] ; then
ADMIN=${ENV_ADMIN}
fi
......@@ -52,7 +50,7 @@ start() {
else
time=$(date "+%Y%m%d-%H%M%S")
## 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 $pid > "$WORK_PATH/$PROG.pid"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册