aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/extended_bin.dtl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-07-23 13:59:11 -0500
committerTristan Sloughter <[email protected]>2014-07-23 13:59:11 -0500
commitf8737c88f54aaa8f2e9a4b66bb74034f0a3bbab1 (patch)
treed195590cfad11c7b74548386a2a4250c7d998d1f /priv/templates/extended_bin.dtl
parent89ba35271122c7486755a76f8f51eaf1b7c2fd5e (diff)
parentc456457017abfec47fd2010894f11b80424b3e2c (diff)
downloadrelx-f8737c88f54aaa8f2e9a4b66bb74034f0a3bbab1.tar.gz
relx-f8737c88f54aaa8f2e9a4b66bb74034f0a3bbab1.tar.bz2
relx-f8737c88f54aaa8f2e9a4b66bb74034f0a3bbab1.zip
Merge pull request #215 from davidw/fix_heart_command
Make HEART_COMMAND use the full path, otherwise it does not work.
Diffstat (limited to 'priv/templates/extended_bin.dtl')
-rw-r--r--priv/templates/extended_bin.dtl4
1 files changed, 3 insertions, 1 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index 79b84ce..8bb3b48 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -143,6 +143,8 @@ case "$1" in
# echo "Node is already running!"
# exit 1
#fi
+ # Save this for later.
+ CMD=$1
case "$1" in
start)
shift
@@ -162,7 +164,7 @@ case "$1" in
[ "$RUN_PARAM" ] && set -- "$@" "$RUN_PARAM"
# Export the HEART_COMMAND
- HEART_COMMAND="$@"
+ HEART_COMMAND="$RELEASE_ROOT_DIR/bin/$REL_NAME $CMD"
export HEART_COMMAND
mkdir -p "$PIPE_DIR"