summaryrefslogtreecommitdiff
path: root/priv/templates
diff options
context:
space:
mode:
authorJoseph Wayne Norton <norton@alum.mit.edu>2011-02-12 23:50:12 +0900
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-02-15 17:05:38 +0100
commit1979da9ee21b90799bdbd3f2b5cdec5e5c982a01 (patch)
tree3f777a5486747e65042aecd06533e8e839eb64ea /priv/templates
parente407838bab16038951a4f5489bdf8737116c775d (diff)
Clarify trailing slash for PIPE_DIR
The trailing slash for PIPE_DIR is necessary for both start and attach operations.
Diffstat (limited to 'priv/templates')
-rwxr-xr-xpriv/templates/simplenode.runner4
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/templates/simplenode.runner b/priv/templates/simplenode.runner
index ec6d7ff..18fa951 100755
--- a/priv/templates/simplenode.runner
+++ b/priv/templates/simplenode.runner
@@ -7,6 +7,7 @@ RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd)
RUNNER_BASE_DIR=${RUNNER_SCRIPT_DIR%/*}
RUNNER_ETC_DIR=$RUNNER_BASE_DIR/etc
RUNNER_LOG_DIR=$RUNNER_BASE_DIR/log
+# Note the trailing slash on $PIPE_DIR/
PIPE_DIR=/tmp/$RUNNER_BASE_DIR/
RUNNER_USER=
@@ -61,8 +62,7 @@ case "$1" in
HEART_COMMAND="$RUNNER_BASE_DIR/bin/$SCRIPT start"
export HEART_COMMAND
mkdir -p $PIPE_DIR
- # Note the trailing slash on $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 console" 2>&1
;;
stop)