# properly to 4:31 on reboot before cron starts. # and touch a file in /etc so clock will be set # Note: To avoid infinite reboot loop, wait 70 seconds One solution for cron is to use a delay and touch a file in /etc before reboot: # Reboot at 4:30am every day Then cron starts and notices a few seconds later that the required boot moment has again arrived and reboots again… (At the end of the boot process ntpd starts, and it may also take a while before ntpd gets and sets the correct time, so cron may start the reboot in between.) So, in the boot process the clock gets set backwards a few seconds to that file's timestamp. The most recent file is possibly a status file or config file, modified maybe 30 seconds before the reboot initiated by cron. How-To Geek explains how to install the BiTorrent client Transmission on DD-WRT. It’s time to install a Transmission and shift gears. We’ve already put your DD-WRT router in first gear with the power of the Opkg package manager. In the boot process the clock is initially set by sysfixtime to the most recent timestamp of any file found in /etc. How-To Geek explains how to install the BiTorrent client Transmission on DD-WRT. This could lead to a never-ending loop of reboot. This is not as simple as it seems, becomes router usually have no real-time clock. So if you want to reboot our router every day at 4.30 in the morning you write somehing like:Īctually five fields (like you listed in also read the advice from wiki (about avoiding reboot loop): It has six fields (minute, hour, day of month, month, day of week).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |