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.

Automatically Reboot Crashed Server?

Discussion in 'General Discussion' started by mthomas209, Apr 1, 2007.

  1. mthomas209

    mthomas209 Registered

    Joined:
    Jan 4, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. _Sam_

    _Sam_ Well-Known Member

    Joined:
    Feb 24, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    Nope, if the server has crashed then it isnt gonna manage to run a script.
     
  3. mthomas209

    mthomas209 Registered

    Joined:
    Jan 4, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  4. _Sam_

    _Sam_ Well-Known Member

    Joined:
    Feb 24, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    If its only things like apache that have stoped working then cpsrvd should restart them
     
  5. mthomas209

    mthomas209 Registered

    Joined:
    Jan 4, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    How do I enable this?
     
  6. abrender

    abrender Active Member

    Joined:
    Dec 5, 2002
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  7. elenlace

    elenlace Well-Known Member

    Joined:
    Sep 10, 2002
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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 ?
     
    #7 elenlace, Apr 9, 2007
    Last edited: Apr 9, 2007
  8. elenlace

    elenlace Well-Known Member

    Joined:
    Sep 10, 2002
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    #8 elenlace, Apr 9, 2007
    Last edited: Apr 9, 2007
  9. kevinm

    kevinm Member

    Joined:
    Feb 22, 2006
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page