Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2012 21:22:02 +0200
From:      Ion-Mihai Tetcu <itetcu@FreeBSD.org>
To:        Michael Scheidell <michael.scheidell@secnap.com>
Cc:        Mark Felder <feld@feld.me>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: multimedia/zoneminder: rc script runs mysql commands?
Message-ID:  <20120112212202.1f22b89e@it.buh.tecnik93.com>
In-Reply-To: <20B7E8C1930569419B93027F125DAB1506DD0D31@USBCTDC001>
References:  <op.v7xljag634t2sn@tech304> <4F0DD20D.7010002@passap.ru> <op.v7xnjdfz34t2sn@tech304> <20120111214702.70541c0a@it.buh.tecnik93.com> <20B7E8C1930569419B93027F125DAB1506DD0D31@USBCTDC001>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 11 Jan 2012 20:14:18 +0000
Michael Scheidell <michael.scheidell@secnap.com> wrote:

> 
>  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 that are looking to a running sequel server, and
> the database recovery. rc ordering 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 service is running. you could do
> something funky with wait pid but you might not want the system to
> hang waiting for everything to start. some kind of passive wait loop
> 2 seconds wait loop 4 seconds wait loop 10 seconds wait loope 60
> seconds wait loop 120 seconds but this is not a free bsd porting
> issue. Uostream would need to look at it.

Yes, but at least some kind of check if the service actually started,
some echo in the console / logging would be veyr good.



> ________________________________________ 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 <feld@feld.me> wrote:
> 
> > On Wed, 11 Jan 2012 12:16:45 -0600, Boris Samorodov <bsam@passap.ru>
> > 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/
> ______________________________________________________________________ 
> 


-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120112212202.1f22b89e>