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

Difference between these CRON reboots

Discussion in 'Cisco/Linksys Wireless Routers' started by mealto, May 26, 2007.

  1. mealto

    mealto LI Guru Member

    What is the difference between these:

    echo "30 3 * * * root /sbin/reboot" > /etc/cron.d/reboot

    versus

    echo "30 3 * * * root /sbin/reboot" > /tmp/cron.d/restart
    touch /tmp/crontab
     
  2. silentaccord

    silentaccord Network Guru Member

    With all the firmware I've used, /etc/cron.d is a symbolic link to /tmp/cron.d so there's no difference.
     
  3. mealto

    mealto LI Guru Member

    I see. So what is the 2nd line for?

    touch /tmp/crontab
     
  4. silentaccord

    silentaccord Network Guru Member

    "touch /tmp/crontab" will force crontab to be reloaded and will make sure your changes take effect. In my experience, this isn't necessary if you put the first line in your startup script so it's executed every time the router reboots but it shouldn't hurt to use it just in case.
     
  5. mealto

    mealto LI Guru Member

    Thanks. Looks like the WRT54GL is taking this perfectly (running Thibor 15c). Still can't believe the Linksys all of a sudden require reboots. It was running fine for almost 1 year and now seeing some problems that are solved with a reboot. Thank goodness for 3rd party firmwares!
     

Share This Page