Results 1 to 3 of 3

Thread: Auto Restart

  1. #1
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Auto Restart

    hi,
    i am running ubuntu server 11.10 with no problems for now.
    I want to restart my server every day at 1AM automaticaly, is it posible and how?

    My server is running 24h at day. and i just want to restart it daily one time.
    Security - a Journey not a Destination

  2. #2
    Join Date
    Sep 2011
    Location
    London
    Beans
    384

    Re: Auto Restart

    Quote Originally Posted by mandza View Post
    hi,
    i am running ubuntu server 11.10 with no problems for now.
    I want to restart my server every day at 1AM automaticaly, is it posible and how?

    My server is running 24h at day. and i just want to restart it daily one time.
    Hi Mandza

    Sounds like a funny thing to do to me, but simple enough. You use root's crontab to reboot. Edit it with
    Code:
    sudo crontab -e
    And add
    Code:
    0 1 * * * /sbin/reboot
    Or perhaps more elegantly:
    Code:
    55 12 * * * /sbin/shutdown -r 01:00 'Daily reboot'
    Hope that helps. Why do you want to reboot it?

    Kind regards,
    Jonathan.
    Last edited by Jonathan L; November 15th, 2011 at 05:58 PM.

  3. #3
    Join Date
    Jun 2011
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Auto Restart

    Thank you very much, it was very helpfull for me.
    Security - a Journey not a Destination

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •