usleep's pvrxxx port and /boot/loader.conf - panic

Bernhard Froehlich decke at bluelife.at
Wed Feb 3 20:41:01 UTC 2010


On Mon, 25 Jan 2010 23:31:19 +0100
Torfinn Ingolfsen <torfinn.ingolfsen at broadpark.no> wrote:

> On Mon, 25 Jan 2010 20:41:45 +0100
> Bernhard Froehlich <decke at bluelife.at> 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/



More information about the freebsd-multimedia mailing list