aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-10-31 10:28:20 -0500
committerTristan Sloughter <[email protected]>2014-10-31 10:28:20 -0500
commit016976897769572b8dd1cddc1fc9708c8d4bb306 (patch)
treedbdf24a82dfbd84f87606c2fca388a92f5c8b4e8 /priv/templates
parent0981eb56425b0ed9e823f93c48477078c90cd5bf (diff)
parenta25dd1405f83961a0fb05b6a325dfdb4f07aa49c (diff)
downloadrelx-016976897769572b8dd1cddc1fc9708c8d4bb306.tar.gz
relx-016976897769572b8dd1cddc1fc9708c8d4bb306.tar.bz2
relx-016976897769572b8dd1cddc1fc9708c8d4bb306.zip
Merge pull request #247 from silverbuddy/master
Fix grep pattern for beam process
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/extended_bin.dtl6
1 files changed, 3 insertions, 3 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index 37ea504..ec4a8f3 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -188,16 +188,16 @@ case "$1" in
Linux|Darwin|FreeBSD|DragonFly|NetBSD|OpenBSD)
# PID COMMAND
PID=$(ps ax -o pid= -o command=|
- grep "$SCRIPT_DIR/.*/[b]eam"|awk '{print $1}')
+ grep "$RELEASE_ROOT_DIR/.*/[b]eam"|awk '{print $1}')
;;
SunOS)
# PID COMMAND
PID=$(ps -ef -o pid= -o args=|
- grep "$SCRIPT_DIR/.*/[b]eam"|awk '{print $1}')
+ grep "$RELEASE_ROOT_DIR/.*/[b]eam"|awk '{print $1}')
;;
CYGWIN*)
# UID PID PPID TTY STIME COMMAND
- PID=$(ps -efw|grep "$SCRIPT_DIR/.*/[b]eam"|awk '{print $2}')
+ PID=$(ps -efw|grep "$RELEASE_ROOT_DIR/.*/[b]eam"|awk '{print $2}')
;;
esac
if ! relx_nodetool "stop"; then