Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2004 10:17:43 -0500
From:      "Shaun T. Erickson" <ste@ste-land.com>
To:        Peter Risdon <peter@circlesquared.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rc script timing issues?
Message-ID:  <404F3197.1000409@ste-land.com>
In-Reply-To: <404ED077.50407@circlesquared.com>
References:  <404E98CB.6060203@ste-land.com> <404ED077.50407@circlesquared.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?404F3197.1000409>