aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ejabberdctl.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template
index 6e4588b5d..7a5ff7639 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" ] ; then
+ if [ ! -x "$FLOCK" || ! -d "$CONNLOCKDIR" ] ; then
JOT='/usr/bin/jot'
if [ ! -x "$JOT" ] ; then
# no flock or jot, simply invoke ctlexec()