Re: [SLE] Forcing start order of init scripts

From: Ken Schneider (suse-list_at_bout-tyme.net)
Date: 07/19/05

  • Next message: Serge Naggar: "[SLE] loss of cups printer definition - suse linux pro 9.1 & samba 3.0.9-2.6-suse - small lan"
    To: suse-linux-e@suse.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 <dylan@dylan.me.uk> 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 suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Serge Naggar: "[SLE] loss of cups printer definition - suse linux pro 9.1 & samba 3.0.9-2.6-suse - small lan"

    Relevant Pages

    • Re: [SLE] problem with ethereal
      ... Greg Freemyer wrote: ... If ethereal can launch any scripts, ... Then those scripts run as root as well. ... This may be a bit "safer", than running from sux. ...
      (SuSE)
    • Re: [opensuse] Re: cron problems
      ... then job start logging is turned off. ... in message log when expected cron mail does a disappearing act. ... Which SUSE version is this? ... if the majority of the standard SuSE scripts explicitly log their status. ...
      (SuSE)
    • [SLE] cron.daily [Was: A bothering "find" in SUSE10]
      ... is this rat's nest of scripts, with such an unintuitive way to decide when ... The method used by SuSE ensure that any script stored in /etc/cron.daily/ ... But true, it could be clearly documented, or configured in Yast. ... Also check the archives at http://lists.suse.com ...
      (SuSE)
    • Re: X startup: background image of xdm
      ... I forgot I wasn't in a SuSE group, ... scripts like these do vary a lot between distros. ... Richard Stonehouse ... (Richard at R Stonehouse dot Co dot U.K.) ...
      (comp.os.linux.x)
    • Re: RedHat and SuSe - not a flame bait
      ... AFAIK you can't download the isofor the latest version, ... SuSE comes with some nice scripts, ... more straight forward then SuSE with this nasty XML config ...
      (comp.os.linux.misc)