LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-23-2006, 03:19 AM   #1
smartnorman
LQ Newbie
 
Registered: Apr 2006
Location: South Africa
Distribution: RH8
Posts: 5

Rep: Reputation: 0
Question Where does RH8 daily set system time to hardware clock time


I have been logging certain network messages on a few PCs (WinXP and RH8) and I noticed that on the RH8 machine, the logged time drifts and then jumps back into synchronisation at about 4:01 a.m. every morning.

I have found where the system clock is set to hardware clock (clock --hctosys) during init, but how is the syncing performed at 4:01 am?

crontab schedules cron.daily tasks for 4:01 or 4:02 every morning, but I can't sets the actual command which sets system time to hardware clock time.

What command / instruction / whatever is used to do the daily synchronisation of system clock to hardware clock?
 
Old 05-24-2006, 02:42 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
cron has multiple ways to be scheduled:

/etc/crontab
/etc/cron.d/<files>
/var/spool/cron/<user_files>

Typically /etc/crontab will be the one that executes /etc/cron.daily (and cron.hourly and cron.monthly etc...). Within those directories (cron.daily etc...) there are files for various purposes.

You need to look for the command in each of those directories. Note that the syntax is not the same in each of these. Type "man cron" and "man crontab" for more details.

As a quick check you can type "crontab -l" to see if you have it in /var/spool/cron/root file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set and sync system time with time server?? servnov Linux - Newbie 6 12-03-2013 07:55 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
Preventing Debian from changing time on hardware clock reddazz Debian 6 04-12-2005 07:45 PM
RTC time on a locally set clock pe2338 Debian 8 09-06-2003 04:30 AM
set daily time limit for being logged into machine? JustinHoMi Linux - General 1 10-15-2001 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration