From owner-freebsd-ports@FreeBSD.ORG Wed Jan 11 20:14:22 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 56C5C106564A; Wed, 11 Jan 2012 20:14:22 +0000 (UTC) (envelope-from michael.scheidell@secnap.com) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id 14F098FC13; Wed, 11 Jan 2012 20:14:21 +0000 (UTC) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [10.70.1.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 5F577621C3B; Wed, 11 Jan 2012 15:14:21 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secnap.com; h= mime-version:content-transfer-encoding:content-type:content-type :content-language:accept-language:in-reply-to:references :message-id:date:date:subject:subject:from:from; s=dkim; t= 1326312860; x=1328127260; bh=8SXntFNYc2J5aLuug88Net0Wcbr0wdAbdeY CYZ7G03w=; b=RfUf2IeEYY8CFU8Go/Ex42pgnUxcspcdQY5mFcgmyvqVR4CXYLH m4qGYIOLYStpIJBN9SVFtwctbHlAsCnOpiHCF61H0KGQrn2HcDpWsmSaky+6XMG6 ffIVwB/WanqmVIC8r7dkSIVhhNVeUEkiWwuERaLqxhsFi3HmVJxpA6/g= X-Amavis-Modified: Mail body modified (using disclaimer) - mx1.secnap.com.ionspam.net X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.17 at mx1.secnap.com.ionspam.net Received: from USBCTDC001.secnap.com (usbctdc001.secnap.com [10.70.1.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.secnap.com.ionspam.net (Postfix) with ESMTPS id 4B7EA621C3A; Wed, 11 Jan 2012 15:14:20 -0500 (EST) Received: from USBCTDC001.secnap.com ([10.70.1.1]) by USBCTDC001 ([10.70.1.1]) with mapi; Wed, 11 Jan 2012 15:14:19 -0500 From: Michael Scheidell To: Ion-Mihai Tetcu , Mark Felder Thread-Topic: multimedia/zoneminder: rc script runs mysql commands? Thread-Index: AQHM0IqkyedgBYUgnEu7E39OqKXJK5YHzRaAgAAG5oCAABJTAP//semu Date: Wed, 11 Jan 2012 20:14:18 +0000 Message-ID: <20B7E8C1930569419B93027F125DAB1506DD0D31@USBCTDC001> References: <4F0DD20D.7010002@passap.ru> , <20120111214702.70541c0a@it.buh.tecnik93.com> In-Reply-To: <20120111214702.70541c0a@it.buh.tecnik93.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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:14:22 -0000 We have the same problem with a commercial product. Is the user decided to= pull a black cord Instead of a soft shut down, the next time a power it up= , sometimes there is a race conditions between time out on the services tha= t are looking to a running sequel server, and the database recovery. rc ord= ering is a good way to at least give me a hint which 1 needs to start first= but has everyone has observed, it in a bit self cannot guarantee this serv= ice is running. you could do something funky with wait pid but you might no= t want the system to hang waiting for everything to start. some kind of pas= sive wait loop 2 seconds wait loop 4 seconds wait loop 10 seconds wait loop= e 60 seconds wait loop 120 seconds but this is not a free bsd porting issue= . Uostream would need to look at it. ________________________________________ From: owner-freebsd-ports@freebsd.org [owner-freebsd-ports@freebsd.org] on = behalf of Ion-Mihai Tetcu [itetcu@FreeBSD.org] Sent: Wednesday, January 11, 2012 2:47 PM To: Mark Felder Cc: freebsd-ports@freebsd.org Subject: Re: multimedia/zoneminder: rc script runs mysql commands? 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. 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 _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" ______________________________________________________________________ This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.spammertrap.com/ ______________________________________________________________________