[ejabberd] ejabberdctl.template patches

Badlop badlop at gmail.com
Tue Jan 26 01:22:24 MSK 2010


2010/1/25 Martin Langhoff <martin.langhoff at gmail.com>:
> There's also a patch for a tiny typo introduced recently.

Thanks, applied to SVN.


> I've got a WIP patch for this, ported and tidied up the implementation
> I have on 2.0.3.

There seems to be two typos:

--- a/src/ejabberdctl.template
+++ b/src/ejabberdctl.template
@@ -239,8 +239,8 @@ ctl ()
     if [ ! "$FLOCK" ];then
        # no flock, simply invoke ctlexec()
        CTL_CONN="ctl-${EJABBERD_NODE}"
-       ctlexec $CTL_CONN $COMMAND)
-    else;
+       ctlexec $CTL_CONN $COMMAND
+    else
        # we have flock so we get a lock
        # on one of a limited number of
        # conn names -- this allows

According to the lines indentation, the FOR loop is not closed,
and the main IF loop is closed with with DONE.

There is also a function defined with:
  sub ctlexec ()
I didn't find that "sub" thing documented in bash or dash manuals.



---
Badlop
ProcessOne


More information about the ejabberd mailing list