system service boot oder - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    garbagedigger Guest

    Lightbulb system service boot oder

    How does one go about controlling the order of how each service starts up when fedora is booting?

    I have a problem where a program tries to query MySql for some information but it does it before MySql starts so this causes the program to fail.

    In the past I have used the chkconfig --levels 235 (application name) but I'm guessing this just tells what ever program you specific to always start up when fedora boots.

    Would I have to edit a file to change the order maybe?


  2. #2
    Join Date
    May 2006
    0 Post(s)
    0 Thread(s)
    Where is your program called from? You could mess with the order using /etc/rc.d/rcX.d names, but it would be better to call your program after the init sequence, such as in rc.local.

  3. #3
    stevea Guest
    grep chkconfig: /etc/init.d/*
    and you get lines like ...
    /etc/init.d/cups:# chkconfig: 2345 98 10

    When you enable this service at any run level it creates links in /etc/rc.d/rcN.d/ called S98cups and K10cups
    All of the SnnXXXX files are executed in alphabetical order at startup.
    All the KxxXXXX files are executed in alpha-order at shutdown.

    2 digit nums are the rule, and generally the Snum and Knum sum to about 100 unless you have a reason otherwise.

  4. #4
    garbagedigger Guest
    It is a mydns program that connects to mysql to get database info needed. I suppose that is why the program "mydns" boots before "mysql," it is alphabetical.

  5. #5
    garbagedigger Guest
    Talk about hacking the configuration for the service startup order.

    So I did: ls /etc/rc.d/rc5.d to view the contents of run level 5. I noticed S52mydns and an S64mysqld in the directory. Now this is a problem because mydns has a lower number so it boots before mysql.

    I also noticed there were some open values between S64 and S70. So I created a file S68mydns and I put the contents the S52mydns into S68mydns. Besides this, S52mydns had: # chkconfig: 345 52 50 inside the file but I changed it to 68. Even though it is commented out, I thought I would update for consistency. I did a reboot and it worked; mydns started after mysql.

    Thanks for the heads up guys. I'm going to save the info on those directories for future reference.

Similar Threads

  1. system-config-service don't start
    By jmarg in forum Using Fedora
    Replies: 13
    Last Post: 17th December 2009, 06:29 AM
  2. Poor system performance due to networking service
    By JBLoudG20 in forum Using Fedora
    Replies: 21
    Last Post: 15th April 2008, 01:37 PM
  3. Replies: 5
    Last Post: 13th February 2007, 09:44 PM
  4. Not work for system service utility in FC4
    By mark2219 in forum Using Fedora
    Replies: 3
    Last Post: 28th December 2006, 08:05 AM
  5. Named service is hogging my system
    By fusi0n in forum Servers & Networking
    Replies: 1
    Last Post: 16th December 2006, 01:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts