Reboot server at given times

Discussion in 'Site & Server Administration' started by champ_rock, Oct 13, 2007.

  1. #1
    hi

    i am having certain probems with my VPS . i want some command which can reboot my server after every 4-5hours..

    i really do not mind if the vps is down for 2-3minutes instead of 7-8hours

    thanks a lot

    (i am running centos OS)
     
    champ_rock, Oct 13, 2007 IP
  2. Sellertools

    Sellertools Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    seems a better option is to figure out why you are having issues and correct those. Rebooting server so frequently seems like a bad idea because what if it doesnt come back up?
     
    Sellertools, Oct 14, 2007 IP
  3. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Would a cron job with the following command do the job :

     
    Camay123, Oct 14, 2007 IP
  4. jamesmoey

    jamesmoey Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    My guess is you are running out of memory. Try restarting RAM hogs service rather than restarting the whole VPS. Maybe you need a better VPS.
     
    jamesmoey, Feb 29, 2008 IP