Wait for 10s for mysql to be available before bailing out.
This commit is contained in:
parent
490432a2f1
commit
90b89aaa85
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.65 2011/03/03 13:16:05 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.66 2011/03/08 13:37:11 ajacoutot Exp $
|
||||
|
||||
COMMENT-main= MS Exchange groupware suite replacement
|
||||
COMMENT-web= zarafa webaccess frontend and MAPI extensions for PHP
|
||||
@ -7,6 +7,8 @@ PKGNAME= zarafa-${V}
|
||||
PKGNAME-main= zarafa-${V}
|
||||
PKGNAME-web= zarafa-webaccess-${V}
|
||||
|
||||
REVISION-main= 0
|
||||
|
||||
CATEGORIES= mail www productivity
|
||||
|
||||
SHARED_LIBS += common_util 1.0 # .1.0
|
||||
|
@ -1,17 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: zarafa_server.rc,v 1.4 2010/12/27 14:50:23 ajacoutot Exp $
|
||||
# $OpenBSD: zarafa_server.rc,v 1.5 2011/03/08 13:37:11 ajacoutot Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/zarafa-server"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_pre() {
|
||||
i=1
|
||||
i=0
|
||||
while [ $i -lt 10 ]; do
|
||||
${LOCALBASE}/bin/mysqladmin -s ping && break
|
||||
sleep 1
|
||||
i=`expr $i + 1`
|
||||
i=$((i+1))
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user