summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorAlexey Romanov <alexey.v.romanov@gmail.com>2011-03-05 14:27:07 +0300
committerAlexey Romanov <alexey.v.romanov@gmail.com>2011-03-05 14:27:07 +0300
commit9da87854f2a8f61d0cedf588d482e78fe1af78e7 (patch)
treef874e3a38d6e8003fff699503ffadcff8bff68f7 /priv
parent76a0fdffa7a01d19f589df37007dca0ce9db0261 (diff)
Support passing plain arguments to `appname start`
Currently with default simplenode template, `appname console other_args` will pass ["console", "other_args"] as plain arguments. But `appname start other_args` effectively calls `appname console`. This patch replaces this call with `appname console other_args`.
Diffstat (limited to 'priv')
-rwxr-xr-xpriv/templates/simplenode.runner3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/simplenode.runner b/priv/templates/simplenode.runner
index 43dce0f..a2cdd79 100755
--- a/priv/templates/simplenode.runner
+++ b/priv/templates/simplenode.runner
@@ -62,7 +62,8 @@ 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
+ shift # remove $1
+ $ERTS_PATH/run_erl -daemon $PIPE_DIR $RUNNER_LOG_DIR "exec $RUNNER_BASE_DIR/bin/$SCRIPT console $@" 2>&1
;;
stop)