1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron-Job

Discussion in 'Other Firmware Projects' started by DoXer, Sep 27, 2004.

  1. DoXer

    DoXer Network Guru Member

    Hello,

    is it possible to make a cron-job, thats reboot the Router at a given time?

    And if yes, how is it possible?

    thx

    Doxer
     
  2. Tanguy

    Tanguy Network Guru Member

    you can try to add in the init script to reboot every 2 hours :

    sleep 7200
    reboot
     
  3. DoXer

    DoXer Network Guru Member

    Thx for the reply.

    Can you tell me, where I can find the init-skripts on the router.
     
  4. Tanguy

    Tanguy Network Guru Member

    in Admin / Diagnostics Page
     
  5. DoXer

    DoXer Network Guru Member

    Yes, thx

    I add this in the Autorun-Bashscript:

    sleep 15
    echo "00 5 * * * root /sbin/reboot" >> /tmp/crontab
     
  6. Tanguy

    Tanguy Network Guru Member

    is this working ?
     
  7. DoXer

    DoXer Network Guru Member

    Yes, it works
     
  8. dankim831

    dankim831 Network Guru Member

    what does that do compared to:

    sleep 7200
    reboot

    also is there anyway for the router to reset at a specific time instead?
    is it also possible to not reset the router but just reset the services like pressing the restart services button in the administration tab?

    thanks
     

Share This Page