From owner-cvs-ports@FreeBSD.ORG Wed Jul 6 20:15:56 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 07505106564A; Wed, 6 Jul 2011 20:15:56 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 71EE78FC08; Wed, 6 Jul 2011 20:15:55 +0000 (UTC) Received: from gate.ipt.ru ([194.62.233.123] helo=h30.sp.ipt.ru) by services.ipt.ru with esmtps (TLSv1:AES128-SHA:128) (Exim 4.54 (FreeBSD)) id 1QeYVl-000NLP-K2; Thu, 07 Jul 2011 00:15:53 +0400 From: Boris Samorodov To: Doug Barton References: <201107061434.p66EY0OG062221@repoman.freebsd.org> <4E14B6E4.50609@FreeBSD.org> Date: Thu, 07 Jul 2011 00:15:52 +0400 In-Reply-To: <4E14B6E4.50609@FreeBSD.org> (Doug Barton's message of "Wed, 06 Jul 2011 12:26:28 -0700") Message-ID: <00116999@h30.sp.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org 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 20:15:56 -0000 Hello All, Doug, thanks for you help. On Wed, 06 Jul 2011 12:26:28 -0700 Doug Barton wrote: > On 07/06/2011 07:34, Boris Samorodov wrote: > > . do a 10 seconds pause only at system startup. > The question is, what is your goal for including that? Does zoneminder > need this delay after it starts? Before it starts? If so, then the > right thing to do is likely to put it in either a start_precmd or > start_postcmd. That way you get 'checkyesno zoneminder_enable' for > free. If the delay is only applicable at boot time, then you > can/should include the code that you added in this version. Actually the problem is run time mysqld dependency. The option REQUIRE: mysql is not efficient here. I'm not sure what/how mysql is started, but zoneminder can not start right after mysql is up. If I use 5 seconds pause, zoneminder starts successfully at 50% of bootings. Ten seconds pause is enough to start zoneminder. So, this delay is needed only at machine booting time. I'm not sure if start_precmd is any way better here. -- WBR, bsam