Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2003 15:21:23 +0200
From:      David Landgren <david@landgren.net>
To:        questions@freebsd.org
Subject:   Re: exe order in /usr/local/etc/rc.d
Message-ID:  <3F8E9B53.6060309@landgren.net>
In-Reply-To: <20031016105145.T16424@gwdu60.gwdg.de>
References:  <Pine.LNX.4.21.0310160239500.12611-100000@slacknet.slacknet.com> <20031016105145.T16424@gwdu60.gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Konrad Heuer wrote:

> On Thu, 16 Oct 2003, RJ45 wrote:
> 
> 
> 
>>I have never understood in which order are execurted the scripts which are
>>in /usr/local/etc/rc.d
>>
>>most port applications like mysqld, cyrus-imapd, spamd etc. put their
>>startup scripts into /usr/local/etc/rc.d but they are not ordered by a
>>number attached before the script name (like the Unix SysV style)
>>
>>anyone has some hint about this ?
>>How can I Set the startup order into /usr/local/etc/rc.d

[...]

> Thus the scripts are executed in alphabetic order.

Which means you are free to rename them as 00-mysqld.sh 20-cyrus.sh 
... etc, in order to obtain the necessary ordering. Just remember that 
if the files were put there from ports, upgrading or removing the port 
in question, expect it to squawk about missing files.

If you were really fussed about it, you could create a 
/usr/local/etc/rc.d/ordered, and symlink /usr/local/etc/rc.d/mysqld.sh 
to /usr/local/etc/rc.d/ordered/00-mysqld etc. etc. as required and set 
local_startup="/usr/local/etc/rc.d/ordered" in /etc/rc.conf

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F8E9B53.6060309>