Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2015-09-25 14:35:03 +0300
committerBadlop <badlop@process-one.net>2015-09-25 14:35:03 +0300
commitdeccf91280f3ed47719f965f03f0122297f51848 (patch)
tree082c76f7f24a34bf0e7dbd8b430841d566081e4c /tools
parent825f4fcc3515d66478873a178ee4bf932da017fb (diff)
Fix calling problem introduced when reducing bashisms (#748)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/joincluster2
-rwxr-xr-xtools/leavecluster2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/joincluster b/tools/joincluster
index 837962236..7385e1697 100755
--- a/tools/joincluster
+++ b/tools/joincluster
@@ -67,7 +67,7 @@ CTL=$(which ejabberdctl)
echo "Using commands:"
[ -x "$CTL" ] && echo $CTL || error "can't find ejabberdctl" 10
-$CTL stop 2>/dev/null >/dev/null
+exec $CTL stop 2>/dev/null >/dev/null
ERLC=${ERL}c
[ -x $ERL ] && echo $ERL || error "can't find erl" 11
diff --git a/tools/leavecluster b/tools/leavecluster
index feacdce2d..3e42c700f 100755
--- a/tools/leavecluster
+++ b/tools/leavecluster
@@ -45,7 +45,7 @@ CTL=$(which ejabberdctl)
echo "Using commands:"
[ -x "$CTL" ] && echo $CTL || error "can't find ejabberdctl" 10
-$CTL stop 2>/dev/null >/dev/null
+exec $CTL stop 2>/dev/null >/dev/null
ERLC=${ERL}c
[ -x $ERL ] && echo $ERL || error "can't find erl" 11