Thirty days uptime, then reboot every hour??

Discussion in 'Programming/Scripts' started by dwygant, Sep 25, 2007.

  1. dwygant

    dwygant New Member

    I would like to set a script in cron.monthly that will add a second script in cron.hourly after a month of uptime has passed, which will shutdown the system every hour.

    In other words, unless the demo user knows the root password and is able to access the first job to delete it, the system will detect that it has been up for thirty (demo time) days and begin to shut down ever hour after that.

    This should be easy for some of you. Thanks in advance too!
  2. falko

    falko Super Moderator ISPConfig Developer

    What about putting a script in cron.hourly that checks the date and shuts down the system if the 30 days are over?

Share This Page