Auto-Reboot when VPS isn't responding

Discussion in 'Site & Server Administration' started by sejophph, Oct 29, 2009.

  1. #1
    I do have a VPS with 1GB of ram that runs on a quad core @ 2.70Ghz , but when posting some posts using Post menu of WP (WordPress), and if my live chat support is turned on for a long time my VPS lags and never responds anymore,

    a quick fix for that is a reboot, now temporarily I nee to investigate some why does this occurring and would like to know if there is an auto-reboot function whenever my VPS never responds at all to all HTTP, FTP access?

    my vps is using hypervm and running with cent 0s - hostinabox..
     
    sejophph, Oct 29, 2009 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You could set up a crontab job that checks the web server and takes action if it's not working. Probably be better to just restart the web server daemon vs. reboot whole thing.
     
    digitalpoint, Oct 29, 2009 IP
  3. jcy1978

    jcy1978 Greenhorn

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Alternatively, you could always restart the process every hour, four hours, etc.

    Simply edit your crontab (or /etc/cron.hourly, etc) and insert the commands.

    Of course, the ideal solution is to get to the root cause of the problem and fix it, but if it's a buggy application, that isn't always possible.
     
    jcy1978, Nov 2, 2009 IP