The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Services not starting up on boot?

Discussion in 'General Discussion' started by gasxtreme, Oct 2, 2007.

  1. gasxtreme

    gasxtreme Active Member

    Joined:
    May 21, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, GA USA
    cPanel Access Level:
    DataCenter Provider
    I just setup two new servers, and when you reboot the servers, none of the essential services (apache, named, mysql, etc.) start up, I have to ssh i and run service httpd restart, etc. to fire them up..... What could cause this and how do I go about fixing it?

    Thanks
    -steve
     
  2. mrcbrown

    mrcbrown Well-Known Member

    Joined:
    Jun 5, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    What init level is the server getting up to? Almost sounds like a single-user mode run this one the server boots up:

    ps aux | grep init


    That should give you the init level, usually looks like: init [3] - what init level is it?
     
  3. gasxtreme

    gasxtreme Active Member

    Joined:
    May 21, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, GA USA
    cPanel Access Level:
    DataCenter Provider
    Its at level 3:

    [root@raider ~]# ps aux | grep init
    root 1 0.0 0.0 2036 640 ? Ss Oct01 0:00 init [3]
    root 32004 0.0 0.0 3888 688 pts/0 S+ 17:12 0:00 grep init

    Thanks
    -steve
     
  4. mrcbrown

    mrcbrown Well-Known Member

    Joined:
    Jun 5, 2003
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Run:

    chkconfig --list

    It should give you a read-out of what's set to start at boot on the various init levels, you can also turn things on with this command -

    chkconfig service on

    So if you want say sshd to start on startup, it's init.d script is sshd so it'd look something like this:

    chkconfig sshd on

    If you do it in init 3 booted, it'll mark the changes in init3 - so give that a whirl not perfect, but it can at least get you back up and running - another option with cPanel is make sure it's set to monitor services - once chkservd starts with cPanel, it'll start any un-started service.

    Hope this helps!
     
Loading...

Share This Page