瀏覽代碼

Support passing plain arguments to simplenode.

`init:get_plain_arguments()` returns `["console", "more_args"]` when
started with `$APP_NAME console more_args`, but `["console"]` when
started with `$APP_NAME start more_args`. This patch makes `start`
behave like `console` in this respect.
pull/3/head
Alexey Romanov 14 年之前
父節點
當前提交
35a3391e7b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      priv/templates/simplenode.runner

+ 1
- 1
priv/templates/simplenode.runner 查看文件

@ -62,7 +62,7 @@ case "$1" in
HEART_COMMAND="$RUNNER_BASE_DIR/bin/$SCRIPT start"
export HEART_COMMAND
mkdir -p $PIPE_DIR
$ERTS_PATH/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR "exec $RUNNER_BASE_DIR/bin/$SCRIPT console" 2>&1
$ERTS_PATH/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR "exec $RUNNER_BASE_DIR/bin/$SCRIPT ${*/start/console}" 2>&1
;;
stop)

Loading…
取消
儲存