From owner-freebsd-ports@FreeBSD.ORG Wed Jan 11 20:04:17 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53EFA106564A for ; Wed, 11 Jan 2012 20:04:17 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from worf.ds9.tecnik93.com (worf.ds9.tecnik93.com [81.196.207.130]) by mx1.freebsd.org (Postfix) with ESMTP id 0F5D68FC0A for ; Wed, 11 Jan 2012 20:04:16 +0000 (UTC) Received: from it.buh.tecnik93.com (unknown [188.27.103.247]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by worf.ds9.tecnik93.com (Postfix) with ESMTPSA id 3F7B722C5051; Wed, 11 Jan 2012 21:47:07 +0200 (EET) Date: Wed, 11 Jan 2012 21:47:02 +0200 From: Ion-Mihai Tetcu To: Mark Felder Message-ID: <20120111214702.70541c0a@it.buh.tecnik93.com> In-Reply-To: References: <4F0DD20D.7010002@passap.ru> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: multimedia/zoneminder: rc script runs mysql commands? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 20:04:17 -0000 On Wed, 11 Jan 2012 12:41:27 -0600 Mark Felder wrote: > On Wed, 11 Jan 2012 12:16:45 -0600, Boris Samorodov > wrote: > > > The problem is: while start-up zoneminder is launched after mysql > > was started but is not responding yet. Then zoneminder can't > > register it's cameras, etc. This hack was introduced to catch the > > moment when mysql really is operational and then start zoneminder. > > If someone has a solution -- you are welcome. > > Instead of hacking up zoneminder's rc script with further patches > like pulling out the real mysql server, database, username and > password perhaps we should see if we can get the mysql maintainer(s) > to fix the mysql rc script so it doesn't exit until the service is > fully fired up and functional? This, unfortunatelly, highlights perhaps our biggest problem with starting services. rc.d basically only *orders* the scripts - REQUIRE is just "this service needs to be started after that one" - AFTER is just a lax checkpoint in the booting sequence And if a script doesn't really start the service, for whatever reason, there's 0 feedback mandeted/provided by the framework. For short, while everything works OK, it's good enough. If not ... it's just misleading. -- IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B