From owner-cvs-ports@FreeBSD.ORG Wed Jul 6 21:11:58 2011 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A101106566B for ; Wed, 6 Jul 2011 21:11:58 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id BE9DB8FC19 for ; Wed, 6 Jul 2011 21:11:57 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p66LBsxh003166 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 6 Jul 2011 22:11:54 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p66LBsxh003166 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1309986714; bh=veSTFfbl/tfElHRQmxYmPlVR1PCZjUgalMBzqTOYlJI=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4E14CF91.1010302@infracaninophile.co.uk>|Date:=20W ed,=2006=20Jul=202011=2022:11:45=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20rv:5.0)=20Gecko/201 10624=20Thunderbird/5.0|MIME-Version:=201.0|To:=20cvs-ports@freebs d.org|Subject:=20Re:=20cvs=20commit:=20ports/multimedia/zoneminder /files=20zm.in|References:=20<201107061434.p66EY0OG062221@repoman. freebsd.org>=09<4E14B6E4.50609@FreeBSD.org>=20<00116999@h30.sp.ipt .ru>=20<4E14C69C.8030200@FreeBSD.org>|In-Reply-To:=20<4E14C69C.803 0200@FreeBSD.org>|X-Enigmail-Version:=201.2|OpenPGP:=20id=3D60AE90 8C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1=3B=0D=0 A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D" ------------enig12A5D12269C76D0C6E689023"; b=rSAdJ38NOS5Ja/bs5lUE3cFcFj6q0RJ3ISShuN+o9jBWgZF91aOnuFrJ9el07WMGa k9BeewYU+ZMQxp10aug9s+nGS/k0R8G2/GHCi5Ca5Z46MCpBCNTV0sw5DgVqeZWGy+ 0Bc+dkxL4/xZJXazMzH/XkWuSeb99R0TnB3fR3f4= Message-ID: <4E14CF91.1010302@infracaninophile.co.uk> Date: Wed, 06 Jul 2011 22:11:45 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: cvs-ports@freebsd.org References: <201107061434.p66EY0OG062221@repoman.freebsd.org> <4E14B6E4.50609@FreeBSD.org> <00116999@h30.sp.ipt.ru> <4E14C69C.8030200@FreeBSD.org> In-Reply-To: <4E14C69C.8030200@FreeBSD.org> X-Enigmail-Version: 1.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig12A5D12269C76D0C6E689023" X-Virus-Scanned: clamav-milter 0.97 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: cvs commit: ports/multimedia/zoneminder/files zm.in X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 21:11:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig12A5D12269C76D0C6E689023 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/07/2011 21:33, Doug Barton wrote: > Of course, if there was some mysql command you could run to verify that= > the db is up that would be better than an unconditional sleep. Somethin= g > like this: >=20 > zm_prestart() > { > local _count=3D0 >=20 > while : ; do > && return >=20 > _count=3D$(( $_count + 1 )) > if [ $_count -gt 10 ]; then > err 1 "${name}: failed" > fi >=20 > sleep 1 > done > } >=20 Testing for the existence of the MySQL unix domain socket is a pretty good indicator of whether MySQL is up and doing yet, and pretty cheap in scripting terms: while : ; do [ -S /tmp/mysql.sock ] && return ...etc Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig12A5D12269C76D0C6E689023 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4Uz5kACgkQ8Mjk52CukIzBwwCeOmulP4ZOYMrTINocm4FTtJYn e3AAn3m7hi1PrtapwvnVMahWGES1Dn4Q =foLa -----END PGP SIGNATURE----- --------------enig12A5D12269C76D0C6E689023--