Posted: Tue Jan 25, 2011 11:20 Post subject: rebooting the only way to keep in time?
I have 2x Asus WL500gP routers and 1x WNR3500L router. All of them are running dd-wrt. However, they don't stay in time and I have to constantly reboot them as I find that the only way to put them back in time.
WNR3500L had only 10 days of uptime, but still it't clock was already 10 minutes wrong. One of those Asus boxes had uptime of 86 days and it was 1h 10min wrong.
Is there a way to get them sync time for example once a week to keep their clock accurate? How can I automate the reboot, so I wouldn't have to manually reboot them every week?
under settings:
select NTP Client
click Enable
select your correct Time Zone
configure Summer Time (DST)according to your country
Server IP/Name, I use pool.ntp.org
under administration, click keep alive tab
enable Schedule Reboot
click Enable
configure the time to reboot _________________ Aceex NR22 running DD-WRT v24-sp2 (03/19/12) std - build 18777 as WAP
Multiple BSSIDs
RT-N16 Tomato Firmware 1.28.0905 MIPSR2-065V K26 USB AIO as gateway
Samba
Media/DLNA Server
SNMP/odmon
NTP client is set, but it doesn't work (seems it only checks the time during the reboot).
I didn't notice there was so easy way to make a scheduled reboot, thanks for that. Although I think it's quite stupid you have to reboot every week to keep the clock in time
Joined: 26 Jan 2008 Posts: 13049 Location: Behind The Reset Button
Posted: Tue Jan 25, 2011 21:31 Post subject: Re: rebooting the only way to keep in time?
kvi wrote:
I have 2x Asus WL500gP routers and 1x WNR3500L router. All of them are running dd-wrt. However, they don't stay in time and I have to constantly reboot them as I find that the only way to put them back in time.
WNR3500L had only 10 days of uptime, but still it't clock was already 10 minutes wrong. One of those Asus boxes had uptime of 86 days and it was 1h 10min wrong.
Is there a way to get them sync time for example once a week to keep their clock accurate? How can I automate the reboot, so I wouldn't have to manually reboot them every week?
I have now scheduled a reboot every saturday morning. Im asleep when it boots, so it really doesn't matter a bit. I still have to figure out how to deal with those Asus wl-500gp routers, since I can't be sure when is the best time to boot them.
If getting the clock right requires killing & restarting services, I'll rather do that with a reboot. Atleast the router (functioning only as an AP) boots relatively fast (compared to my actual PC firewall). Wish in the future they would add a way to simply run ntpdate from crontab or something. And I mean running it without restarting services.
Posted: Wed Jan 26, 2011 18:17 Post subject: Cron job that force time sync
Just add those two jobs in Administration->Management->Cron->Addtitional Cron Jobs
0,20,40 * * * * root killall process_monitor
0,20,40 * * * * root process_monitor
Make sure Cron is enable two then save and apply... this is not a complete reboot, only restart processes, included time sync...