rc script timing issues?

Shaun T. Erickson ste at ste-land.com
Wed Mar 10 07:17:45 PST 2004


Peter Risdon wrote:

>  From man 8 rc.d:
> 
>         The scripts within each directory are executed in lexicographical
>         order.  If a specific order is required, numbers may be used as a
>         prefix to the existing filenames, so for example 100.foo would be
>         executed before 200.bar; without the numeric prefixes the opposite
>         would be true.
> 
> You might be able to see this if you've installed, say, mysql-client 
> which uses a script in /usr/local/etc/rc.d called 000.mysql-client.sh - 
> the 000. forces an early startup. So I suggest you're better off moving 
> the scripts back to /usr/local/etc/rc.d and prefixing them with numerals 
> to get the startup order correct.

This was exactly the solution I needed and, per your later email, I also 
made sure the client script runs first.

	-ste



More information about the freebsd-questions mailing list