@@ -30,7 +30,7 @@ relx_rem_sh() {
30
30
# Generate a unique id used to allow multiple remsh to the same node
31
31
# transparently
32
32
id=" remsh$( relx_gen_id) -${NAME} "
33
-
33
+
34
34
# Setup remote shell command to control node
35
35
exec " $BINDIR /erl" " $NAME_TYPE " " $id " -remsh " $NAME " -boot start_clean \
36
36
-setcookie " $COOKIE "
@@ -60,8 +60,8 @@ if [ -z "$VMARGS_PATH" ]; then
60
60
VMARGS_PATH=" $RELEASE_ROOT_DIR /vm.args"
61
61
USE_DIR=" $RELEASE_ROOT_DIR "
62
62
else
63
- USE_DIR=" $REL_DIR "
64
- VMARGS_PATH=" $REL_DIR /vm.args"
63
+ USE_DIR=" $REL_DIR "
64
+ VMARGS_PATH=" $REL_DIR /vm.args"
65
65
fi
66
66
fi
67
67
@@ -156,7 +156,7 @@ case "$1" in
156
156
# Set arguments for the heart command
157
157
set -- " $SCRIPT_DIR /$REL_NAME " " $HEART_OPTION "
158
158
[ " $RUN_PARAM " ] && set -- " $@ " " $RUN_PARAM "
159
-
159
+
160
160
# Export the HEART_COMMAND
161
161
HEART_COMMAND=" $@ "
162
162
export HEART_COMMAND
@@ -298,7 +298,7 @@ case "$1" in
298
298
export PROGNAME
299
299
300
300
# Store passed arguments since they will be erased by `set`
301
- ARGS=" $@ "
301
+ ARGS=" $@ "
302
302
303
303
# Build an array of arguments to pass to exec later on
304
304
# Build it here because this command will be used for logging.
@@ -323,7 +323,7 @@ case "$1" in
323
323
# or other supervision services
324
324
325
325
[ -f " $REL_DIR /$REL_NAME .boot" ] && BOOTFILE=" $REL_NAME " || BOOTFILE=start
326
- FOREGROUNDOPTIONS=" -noinput +Bd"
326
+ FOREGROUNDOPTIONS=" -noshell - noinput +Bd"
327
327
328
328
# Setup beam-required vars
329
329
EMU=beam
@@ -333,11 +333,11 @@ case "$1" in
333
333
export PROGNAME
334
334
335
335
# Store passed arguments since they will be erased by `set`
336
- ARGS=" $@ "
336
+ ARGS=" $@ "
337
337
338
338
# Build an array of arguments to pass to exec later on
339
339
# Build it here because this command will be used for logging.
340
- set -- " $BINDIR /erlexec" " $FOREGROUNDOPTIONS " \
340
+ set -- " $BINDIR /erlexec" $FOREGROUNDOPTIONS \
341
341
-boot " $REL_DIR /$BOOTFILE " -mode embedded -config " $CONFIG_PATH " \
342
342
-args_file " $VMARGS_PATH "
343
343
0 commit comments