From d106f741d90ef29d3fb3c7ab1bd3f6f85bf3228b Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 9 Jul 2010 22:39:13 +0200 Subject: Some systems delete the lock dir; in such case don't use flock at all --- src/ejabberdctl.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3