]> granicus.if.org Git - ejabberd/commitdiff
Fix refactor bug on wait_status
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 13 Jun 2017 10:37:27 +0000 (12:37 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 13 Jun 2017 10:37:27 +0000 (12:37 +0200)
ejabberdctl.template

index 8976414d58568e5bdb0f23c10efee29f0780e791..26719cc2640a1bdbe00f30aa779a8e3248fc6af5 100755 (executable)
@@ -245,7 +245,8 @@ wait_status()
         if [ $timeout -eq 0 ] ; then
             status=$1
         else
-            ctl status > /dev/null
+            exec_erl $(uid ctl) -hidden -noinput -s ejabberd_ctl \
+                     -extra $ERLANG_NODE $NO_TIMEOUT status > /dev/null
             status=$?
         fi
     done