Services not starting up on boot?

gasxtreme

Active Member
May 21, 2004
37
0
231
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
 

mrcbrown

Well-Known Member
Jun 5, 2003
100
1
168
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?
 

mrcbrown

Well-Known Member
Jun 5, 2003
100
1
168
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!