Re: [SLE] How to configure ORDER of runlevel services?

From: Ken Schneider (suselist_at_rtsx.com)
Date: 08/30/04

  • Next message: Marcos Vinicius Lazarini: "[SLE] Spamassassin and amavis configuration"
    Date: Sun, 29 Aug 2004 22:44:09 -0400
    To: suse-linux-e@suse.com
    
    

    -----Original Message-----
    From: Chris Carlen <crobc@earthlink.net>
    To: suse-linux-e@suse.com
    Date: Sun, 29 Aug 2004 18:24:51 -0700
    Subject: [SLE] How to configure ORDER of runlevel services?

    > Hi:
    >
    > My MatLab flexlm script fails at boot because the install script put it
    > as the first service to start, but it needs network up. It works fine
    > if I start it manually after the system is up.
    >
    > I never realized that there seems to be no way to control the ORDER of
    > services in the Yast|System|Runlevel Editor.
    >
    > Obviously I can do it by hand by changing the symlinks, but jeez, I
    > think this is a serious deficiency. Certainly it is very important the
    > order in which *some* services are started.
    >
    > Am I missing something? Shouldn't this be tweakable in Yast?
    >
    >
    > Thanks.
    >
    >

    Find these lines near the top of the init script, notice the

    "# Required-Start line"

    that states which services should be started prior to the start of your
    script. This one is taken from the named script in /etc/init.d.

    ## BEGIN INIT INFO
    # Provides: named
    # Required-Start: $network $remote_fs $syslog
    # Required-Stop:
    # Default-Start: 3 5
    # Default-Stop:
    # Description: Starts internet domain name server (DNS) BIND 9
    ### END INIT INFO

    Adjust your script accordingly and insserv -d and it should adjust the
    point at which it starts.

    Ken

    -- 
    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: Marcos Vinicius Lazarini: "[SLE] Spamassassin and amavis configuration"

    Relevant Pages

    • Re: init.d question
      ... >> I have several daemons that I want to automatically start at boot up. ... > # network Bring up/down networking ... > so you can see your script execute during boot. ...
      (alt.linux)
    • Re: any script added to init.d is LIFO
      ... What you are asking is to have YaST start it after the script ... This position is always first in the runlevel. ... # Required-Stop: ...
      (alt.os.linux.suse)
    • Re: [SLE] Which start-up script?
      ... Simply use the skeleton script, and fill in INIT INFO to reflect ... Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ... Check the headers for your unsubscription address ...
      (SuSE)
    • Re: [SLE] Best way to start a daemon at powerup?
      ... If I choose to create a script based on skeleton what would I name it ... Give the script a meaningful name in /etc/init.d. ... control mechanisms available then go the YaST's runlevel control module ... "END INIT INFO" section by looking at the extensive ...
      (SuSE)
    • Re: [SLE] Best way to start a daemon at powerup?
      ... If I choose to create a script based on skeleton what would I name it ... Give the script a meaningful name in /etc/init.d. ... control mechanisms available then go the YaST's runlevel control module ... "END INIT INFO" section by looking at the extensive ...
      (SuSE)