From owner-freebsd-multimedia@FreeBSD.ORG Wed Feb 3 20:41:01 2010 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8763D1065692 for ; Wed, 3 Feb 2010 20:41:01 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail.itac.at (mail.itac.at [91.205.172.9]) by mx1.freebsd.org (Postfix) with ESMTP id ED98B8FC22 for ; Wed, 3 Feb 2010 20:41:00 +0000 (UTC) Received: from [78.142.74.81] (helo=localhost) by mail.itac.at with esmtpa (Exim 4.63) (envelope-from ) id 1Ncm1z-00006b-Az; Wed, 03 Feb 2010 21:40:59 +0100 Date: Wed, 3 Feb 2010 22:41:11 +0100 From: Bernhard Froehlich To: Torfinn Ingolfsen Message-ID: <20100203224111.50f5903c@bluelife.at> In-Reply-To: <20100125233119.62e91aaa.torfinn.ingolfsen@broadpark.no> References: <20100102001753.090c89ad.torfinn.ingolfsen@broadpark.no> <53a1e0711001012338v4ba68961o4a1d26a40abce396@mail.gmail.com> <20100125202425.18ad4fb2.torfinn.ingolfsen@broadpark.no> <20100125233119.62e91aaa.torfinn.ingolfsen@broadpark.no> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.18.6; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Spam-Report: Spam detection software, running on the system "mail.itac.at", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, 25 Jan 2010 23:31:19 +0100 Torfinn Ingolfsen wrote: > On Mon, 25 Jan 2010 20:41:45 +0100 > Bernhard Froehlich wrote: > > > All you need to do is to change REQUIRE and BEFORE so that it gets > > called before the daemons start. Have a look at some ports that > > load kernel modules - for example virtualbox-ose-kmod which uses: > > > > # PROVIDE: vboxnet > > # REQUIRE: FILESYSTEMS > > # BEFORE: netif > > # KEYWORD: nojail > > Yes, using FILESYSTEMS and netif in REQUIRE / BEFORE works nicely, > thanks a lot. Updated script attached. > > The cxmload script even works on my old installation (FreeBSD > 6.2-stable and MythTV 0.20 something), but it made me notice something > else: mythbackend isn't starting automatically. Before it was caused > by the missing cxm module, now it is because of mysql. > > /usr/local/etc/rc.d/mysql-server have these lines: > # PROVIDE: mysql > # REQUIRE: LOGIN > # KEYWORD: shutdown > > and /usr/local/etc/rc.d/mythbackend have these lines: > # PROVIDE: mythbackend > # REQUIRE: DAEMON > # BEFORE: LOGIN > # KEYWORD: FreeBSD shutdown > > If the mysql-server script is correct, perhaps we should change the > mythbackend script? > > If I change the mythbackend script like so: > # PROVIDE: mythbackend > # REQUIRE: mysql > # KEYWORD: FreeBSD shutdown > > mythbackend starts after mysql. > Is this the correct way to do it? [...] Content analysis details: (0.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP 3.4 FH_DATE_PAST_20XX The date is grossly in the future. -1.4 AWL AWL: From: address is in the auto white-list Cc: freebsd-multimedia@FreeBSD.org Subject: Re: usleep's pvrxxx port and /boot/loader.conf - panic X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 20:41:01 -0000 On Mon, 25 Jan 2010 23:31:19 +0100 Torfinn Ingolfsen wrote: > On Mon, 25 Jan 2010 20:41:45 +0100 > Bernhard Froehlich wrote: > > > All you need to do is to change REQUIRE and BEFORE so that it gets > > called before the daemons start. Have a look at some ports that > > load kernel modules - for example virtualbox-ose-kmod which uses: > > > > # PROVIDE: vboxnet > > # REQUIRE: FILESYSTEMS > > # BEFORE: netif > > # KEYWORD: nojail > > Yes, using FILESYSTEMS and netif in REQUIRE / BEFORE works nicely, > thanks a lot. Updated script attached. > > The cxmload script even works on my old installation (FreeBSD > 6.2-stable and MythTV 0.20 something), but it made me notice something > else: mythbackend isn't starting automatically. Before it was caused > by the missing cxm module, now it is because of mysql. > > /usr/local/etc/rc.d/mysql-server have these lines: > # PROVIDE: mysql > # REQUIRE: LOGIN > # KEYWORD: shutdown > > and /usr/local/etc/rc.d/mythbackend have these lines: > # PROVIDE: mythbackend > # REQUIRE: DAEMON > # BEFORE: LOGIN > # KEYWORD: FreeBSD shutdown > > If the mysql-server script is correct, perhaps we should change the > mythbackend script? > > If I change the mythbackend script like so: > # PROVIDE: mythbackend > # REQUIRE: mysql > # KEYWORD: FreeBSD shutdown > > mythbackend starts after mysql. > Is this the correct way to do it? Sorry that it took so long to respond. # PROVIDE: mythbackend # REQUIRE: DAEMON mysql # KEYWORD: shutdown That should be correct and i've verified it with: rcorder /etc/rc.d/* /usr/local/etc/rc.d/* which gives on my box: /usr/local/etc/rc.d/nginx /usr/local/etc/rc.d/mysql-server /usr/local/etc/rc.d/mythbackend /usr/local/etc/rc.d/lighttpd /etc/rc.d/moused /usr/local/etc/rc.d/dbus That looks correct now. I will submit a PR to fix the port in a few minutes. Thanks! -- Bernhard Froehlich http://www.bluelife.at/