aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-07-09 22:39:13 +0200
committerBadlop <badlop@process-one.net>2010-07-09 22:39:13 +0200
commitd106f741d90ef29d3fb3c7ab1bd3f6f85bf3228b (patch)
tree0f2aabfc2f995ef59aac2e66df0a5a9a08ed2fc9
parentAdded functions to collect statistics about queues, memory, reductions etc. S... (diff)
Some systems delete the lock dir; in such case don't use flock at all
-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()