Automatically Reboot Crashed Server?

mthomas209

Registered
Jan 4, 2007
4
0
151
Is there a way to automatically reboot a server if it crashes? I have a notification service that notifies me if things go down but then I have to manually reboot which is no good if it happens at 3am. Any suggestions on a script, program or service that will do a graceful reboot if my sites go down?
 

_Sam_

Well-Known Member
Feb 24, 2007
78
0
156
Nope, if the server has crashed then it isnt gonna manage to run a script.
 

mthomas209

Registered
Jan 4, 2007
4
0
151
Well in my case I can still access WHM so it has not totally gone down so I am guessing there is a way to do this. Are there not even any third party solutions for this?
 

_Sam_

Well-Known Member
Feb 24, 2007
78
0
156
If its only things like apache that have stoped working then cpsrvd should restart them
 

abrender

Active Member
Dec 5, 2002
37
0
156
Try adding:

panic=15

To the kernel parameters in your boot loader. That will instruct the kernel to reboot 15 seconds after a kernel panic.
 

elenlace

Well-Known Member
Sep 10, 2002
101
0
166
US
Dear abrender,

Would you be kind enough to let me know where I can modify the boot parameters of the kernel?

Warmest Regards!

PS: Do you mean modifying /etc/grub.conf ?
 
Last edited: