rcorder

RW rwmaillists at googlemail.com
Mon Dec 27 13:21:48 UTC 2010


On Mon, 27 Dec 2010 07:50:20 -0500
Nu 2 Da Boro <nu2daboro08 at gmail.com> wrote:

> Thanks, but I'm still unable to get it to work... I'm trying to get
> barnyard2 to boot after mysql
> I placed mysql and/or mysql-server under PROVIDE and/or REQUIRE in
> rc.d/barnyard2. Then ran rcorder to show the correct setting and
> still no luck.

PROVIDE is what the the script provides (i.e. the name of the script
for ordering purposes), REQUIRE is the what needs to be run before the
current script and AFTER is what can't be run until the current script
completes.

Don't edit the files though, or you'll have to maintain them
indefinitely. Do it with an extra file as I suggested.

Afterwards run 

rcorder /etc/rc.d/* /usr/local/etc/rc.d/*

and check for any errors 

> I was able to uncomment REQUIRE and that produces an
> error which now causes barnyard2 to load after mysql. Funny how
> things work.

The ordering information is placed in comments at the top of the
script for rcorder to parse. If you uncomment them they become syntax
errors within the script. 


More information about the freebsd-questions mailing list