Re: [SLE] Forcing start order of init scripts
From: Ken Schneider (suse-list_at_bout-tyme.net)
To: email@example.com Date: Mon, 18 Jul 2005 19:19:53 -0400
On Mon, 2005-07-18 at 15:34 -0400, Greg Freemyer wrote:
> On 7/18/05, Dylan <firstname.lastname@example.org> wrote:
> > Dear List,
> > I use NIS to distribute /etc/hosts for lan hostname lookup. This works
> > fine for all but one machine. For some reason, ypbind is not running on
> > that machine until after xntpd tries to resolve my gateway's hostname
> > to get initial time sync.
> > Can I force /etc/init.d/xntpd to wait until ypbind is running? How?
> > Cheers
> The order of the init scripts running is controlled by the links in
> /etc/init.d/rc3.d, etc.
> They are run in alphabetical order.
> So S10* is run before S20*, etc.
> If you need to re-order some scripts, just rename them appropriately.
> (Be sure not to change the first letter, the S is for Start and K is
> for Kill. Only S* and K* links get run at startup/shutdown.
> If you do any renaming, I would go into all of the rc?.d directories
> and do the same renames.
> FYI: I don't know how maintainable this solution is, so maybe someone
> knows a more maintainable solution.
If you are using SuSE 9.2 or 9.3 it will not work that way. If you want
to reorder the start sequence of the scripts take a look at the
beginning of the scripts and look for the Requires: line. This
determines which scripts run before others. Simply changes the links
will not keep after SuSEconfig is run.
P.S. Greg, please only reply to the list.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge -- Check the headers for your unsubscription address For additional commands send e-mail to email@example.com Also check the archives at http://lists.suse.com Please read the FAQs: firstname.lastname@example.org