diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index 7a5ff7639..fecdecc86 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -239,7 +239,7 @@ ctl () MAXCONNID=100 CONNLOCKDIR=@LOCALSTATEDIR@/lock/ejabberdctl FLOCK='/usr/bin/flock' - if [ ! -x "$FLOCK" || ! -d "$CONNLOCKDIR" ] ; then + if [ ! -x "$FLOCK" ] || [ ! -d "$CONNLOCKDIR" ] ; then JOT='/usr/bin/jot' if [ ! -x "$JOT" ] ; then # no flock or jot, simply invoke ctlexec()