you would find the reason for such behavior here http://www.linuxfromscratch.org/hints/downloads/files/time.txt
sharad birmiwal On 10/6/05, Rajesh Kumar Mallah <[EMAIL PROTECTED]> wrote: > > > Hi Folks, > > Very often our crond goes berserk . > > Eg below is the normal state wherein the times in line > towards the end of cron log are more or less matching the > system time. > > [EMAIL PROTECTED] root]# date > Thu Oct 6 19:19:21 IST 2005 > [EMAIL PROTECTED] root]# tail -f /var/log/cron > Oct 6 19:14:00 IPDDFG0595ATL2 CROND[20301]: (root) CMD > (/usr/sbin/ntpdate ntp.myfloridacity.us <http://ntp.myfloridacity.us> > > /dev/null) > Oct 6 19:15:00 IPDDFG0595ATL2 CROND[20681]: (root) CMD (/usr/bin/mrtg > /etc/mrtg/mrtg.cfg) > Oct 6 19:15:00 IPDDFG0595ATL2 CROND[20677]: (root) CMD (export > LANG=en_US && mrtg /usr/local/interface/mrtg/mrtg.cfg &> /dev/null) > Oct 6 19:19:01 IPDDFG0595ATL2 CROND[22101]: (root) CMD > (/usr/sbin/ntpdate ntp.myfloridacity.us <http://ntp.myfloridacity.us> > > /dev/null) > [EMAIL PROTECTED] root]# > > > However quite frequently once in 2-3 days the crond goes berserk and its > time > is not same as system time , eg during day time it executes jobs of 1 am > and > displays 1 am in the log lines too. On restarting the crond > (/etc/init.d/crond restart) > the problem gets resolved temporarily. > > Could anyone please suggest what could be a permanent solution > to it? . Did anyone else face similar problem ? my platform is RHEL3 + > vixie-cron-3.0.1-76_EL3 + crontabs-1.10-5 > > > BTW, is it possible to write such a crontab entry that will have the > current time/date > in the command line. the idea is since the system time is being synced > by ntpd it is > mostly ok, if i could run a crontab that has time/date info in the > command itself > then may be it will be possible to detect at what time or what program > caused the > cron to go berserk . As the full command name come in the log > > Eg: > Oct 6 19:15:00 IPDDFG0595ATL2 CROND[20681]: (root) CMD (/usr/bin/mrtg > /etc/mrtg/mrtg.cfg) > > > Any reply would be greatly appreciated. > > Best Regds > Rajesh Kumar Mallah. > > _______________________________________________ > ilugd mailinglist -- ilugd@lists.linux-delhi.org > http://frodo.hserus.net/mailman/listinfo/ilugd > Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi > http://www.mail-archive.com/ilugd@lists.linux-delhi.org/ > > _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/