Cronjob to reboot vps daily

Discussion in 'Site & Server Administration' started by Ruriko, Oct 9, 2011.

  1. #1
    I want to setup a cronjob to reboot the vps on a daily basis. How can I do this? I am running ubuntu
     
    Ruriko, Oct 9, 2011 IP
  2. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Open the terminal

    $su

    Enter the root user password

    #crontab -e

    or

    # crontab -e -u root

    0 22 * * * /sbin/reboot --> Append this entry to it to reboot box at 22:00 hrs
     
    sahabcse, Oct 9, 2011 IP