rc: not working as expected? (round 2)

Jeremy Chadwick koitsu at FreeBSD.org
Fri Oct 10 15:35:42 UTC 2008


On Fri, Oct 10, 2008 at 12:19:21PM -0300, Paul Halliday wrote:
> (I mistakenly sent the last msg before finishing..)
> 
> Or maybe an interpretation issue.
> 
> I have a few startup scripts in rc.d and I am experiencing timing
> issues. i.e. I need xyz to start before abc.
> 
> Within xyz I tried:
> 
> # REQUIRE: abc
> 
> This didn't work so I tried:
> 
> 100.xyz
> 900.abc
> which doesn't appear to work either.
> 
> What am I missing?

The answer is probably in the rcorder(8) or rc(8) man pages.

I'm betting you need to use the "BEFORE" clause, and the string you need
to match on is whatever one (or more) of the "PROVIDE" clauses are in
the script which you want to start first.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



More information about the freebsd-questions mailing list