Cron daily automated booth

Discussion in 'HOWTO-Related Questions' started by statiic, Nov 22, 2006.

  1. statiic

    statiic New Member

    I tryed to setup an cron.daily for an automated reboot of my server.

    I want it to reboot every day at 05:00 AM local time.

    Does anyone know whats the proper script for this?

    Or should I do it only once a week?
  2. falko

    falko Super Moderator ISPConfig Developer

  3. statiic

    statiic New Member

    Yes I know that part. But i'm using mandriva an have to create an file within the cron.daily folder. But what must be in the file.

    So the cron is already running daily, but now I want to specifiy the time or am I incorrect here?
  4. sjau

    sjau Local Meanie Moderator

    I setup root crons as followed:

    1) make a file in /root named cron.txt
    2) add stuff there :)
    0 5 * * * reboot
    3) save the file
    4) add it to as cron:
    crontab cron.txt
    5) check whether it's added
    crontab -l
  5. falko

    falko Super Moderator ISPConfig Developer

    You could create a file /etc/cron.daily/reboot which looks like this:
    shutdown -r now
    exit 0
    Don't forget to make it executable:
    chmod 755 /etc/cron.daily/reboot

Share This Page