提交 497bc383 编写于 作者: Y Your Name

修改节点启动文件

上级 45939d7f
......@@ -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.
先完成此消息的编辑!
想要评论请 注册