aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authorsilverbuddy <[email protected]>2014-10-31 17:47:47 +0300
committersilverbuddy <silverbuddy@frontier>2014-10-31 18:17:56 +0300
commita25dd1405f83961a0fb05b6a325dfdb4f07aa49c (patch)
tree564cb1b71b5b7e90cd9e4e9a61c400a0ea99dc26 /priv/templates
parent0b5c8714c76c10bd92463b4d2ba9431e34af650e (diff)
downloadrelx-a25dd1405f83961a0fb05b6a325dfdb4f07aa49c.tar.gz
relx-a25dd1405f83961a0fb05b6a325dfdb4f07aa49c.tar.bz2
relx-a25dd1405f83961a0fb05b6a325dfdb4f07aa49c.zip
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 abb823d..ccee56f 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -187,16 +187,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