diff options
author | Alexey Romanov <alexey.v.romanov@gmail.com> | 2011-02-21 12:46:57 +0300 |
---|---|---|
committer | Alexey Romanov <alexey.v.romanov@gmail.com> | 2011-02-21 12:46:57 +0300 |
commit | 35a3391e7bfb671faae3b848869c63c72441fea6 (patch) | |
tree | 746529b8d93473e85f041e97477b4bd7487c0e5b /priv | |
parent | 7dc371d8a3b9a6e2ab9f814c0d2536cf638ceb99 (diff) |
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.
Diffstat (limited to 'priv')
-rwxr-xr-x | priv/templates/simplenode.runner | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/templates/simplenode.runner b/priv/templates/simplenode.runner index 18fa951..bcb8b94 100755 --- a/priv/templates/simplenode.runner +++ b/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) |