Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 23:31:19 +0100
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-multimedia@FreeBSD.org
Subject:   Re: usleep's pvrxxx port and /boot/loader.conf - panic
Message-ID:  <20100125233119.62e91aaa.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <c6509d52251e57991ade700a0b6396b0@bluelife.at>
References:  <20100102001753.090c89ad.torfinn.ingolfsen@broadpark.no> <53a1e0711001012338v4ba68961o4a1d26a40abce396@mail.gmail.com> <20100125202425.18ad4fb2.torfinn.ingolfsen@broadpark.no> <c6509d52251e57991ade700a0b6396b0@bluelife.at>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Boundary_(ID_tHLseeIL8im9PYGDHM3Bvg)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT

On Mon, 25 Jan 2010 20:41:45 +0100
Bernhard Froehlich <decke@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?
-- 
Regards,
Torfinn Ingolfsen


--Boundary_(ID_tHLseeIL8im9PYGDHM3Bvg)
Content-type: application/octet-stream; name=cxmload
Content-transfer-encoding: base64
Content-disposition: attachment; filename=cxmload

IyEvYmluL3NoCiMKIwojIFBST1ZJREU6IGN4bWxvYWQKIyBSRVFVSVJFOiBGSUxFU1lTVEVNUwoj
IEJFRk9SRTogbmV0aWYKIyBLRVlXT1JEOiBzaHV0ZG93bgoKIwoKLiAvZXRjL3JjLnN1YnIKCm5h
bWU9ImN4bWxvYWQiCnJjdmFyPSR7bmFtZX1fZW5hYmxlCgo6ICR7Y3htbG9hZF9lbmFibGU6PSJO
TyJ9CgpzdGFydF9jbWQ9JHtuYW1lfV9zdGFydApzdG9wX2NtZD0ke25hbWV9X3N0b3AKCmN4bWxv
YWRfc3RhcnQoKSB7CglpZiAhIC9zYmluL2tsZHN0YXQgfCBncmVwIC13IGN4bS5rbyA+L2Rldi9u
dWxsOyB0aGVuCgkJZWNobyAiTG9hZGluZyB0aGUgY3htIGttb2QuIgoJCS9zYmluL2tsZGxvYWQg
Y3htLmtvCgllbHNlCgkJZWNobyAiVGhlIGN4bSBrbW9kIGlzIGFscmVhZHkgbG9hZGVkLiIKCWZp
Cn0KCmN4bWxvYWRfc3RvcCgpIHsKCWVjaG8gIkR1bW15IC0gd2UgZG9uJ3QgdW5sb2FkIHRoZSBj
eG0ga21vZC4iCn0KCmxvYWRfcmNfY29uZmlnICR7bmFtZX0KcnVuX3JjX2NvbW1hbmQgIiQxIgo=

--Boundary_(ID_tHLseeIL8im9PYGDHM3Bvg)--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100125233119.62e91aaa.torfinn.ingolfsen>