aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid N. Welton <[email protected]>2014-07-22 16:07:54 +0200
committerDavid N. Welton <[email protected]>2014-07-22 16:07:54 +0200
commitc456457017abfec47fd2010894f11b80424b3e2c (patch)
treed195590cfad11c7b74548386a2a4250c7d998d1f
parent89ba35271122c7486755a76f8f51eaf1b7c2fd5e (diff)
downloadrelx-c456457017abfec47fd2010894f11b80424b3e2c.tar.gz
relx-c456457017abfec47fd2010894f11b80424b3e2c.tar.bz2
relx-c456457017abfec47fd2010894f11b80424b3e2c.zip
Make HEART_COMMAND use the full path, otherwise it does not work.
Fixes #214
-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"