How to make server automatically restart at a time i set?

Discussion in 'Site & Server Administration' started by michiganfootball20, May 13, 2008.

  1. #1
    Hello, im trying to find a way to get my server to turn off and on and basically reset at a set time period, lets say once every hour, so that my RAM is reset and my pages load faster. Is there any way to do this?
     
    michiganfootball20, May 13, 2008 IP
  2. tapalapa

    tapalapa Peon

    Messages:
    229
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yes can be done. u can use cron to execute the ssh commands at the times u want
     
    tapalapa, May 13, 2008 IP
  3. alikuru

    alikuru Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you are using a Linux variant on your server as an operating system, crontab can help you. See WikiPedia for general definition;
    http://en.wikipedia.org/wiki/Crontab

    Also, I suggest you to check DreamHost wiki for examples;
    http://wiki.dreamhost.com/Crontab
     
    alikuru, May 14, 2008 IP