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