LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2011, 02:06 PM   #1
kenny724
LQ Newbie
 
Registered: May 2008
Posts: 10

Rep: Reputation: 0
Red Hat Question


I'm a little new to Red Hat. I'm have set date and hwclock --systohc. I need it to run 10 minutes behind actual time. However, every so often, within an hour the dang time keeps resetting itself to the actual time. How can I prevent this?

Thanks.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-30-2011, 02:14 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

ntp is probably running to update the time.

To check:
Code:
$ su -
# chkconfig --list ntpd
If it is running and you want to turn it off:
Code:
chkconfig ntpd off
If you need to turn it on again:
Code:
chkconfig ntpd on
Also: Have a look here: services - chkconfig

Hope this helps.
 
2 members found this post helpful.
Old 09-30-2011, 02:56 PM   #3
kenny724
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
thanks. There was 0 - 6 and 2-5 where on. I turned them off.
 
Old 09-30-2011, 03:12 PM   #4
kenny724
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
The time still reset. Is there anything else I could try?
 
Old 09-30-2011, 03:26 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
chkconfig will configure how a daemon starts at boot up. To stop currently running process:
service ntpd stop

Last edited by michaelk; 09-30-2011 at 03:28 PM.
 
Old 09-30-2011, 04:10 PM   #6
kenny724
LQ Newbie
 
Registered: May 2008
Posts: 10

Original Poster
Rep: Reputation: 0
ntpd service is stopped, but the time is still resetting. What else could it be? Thanks.
 
Old 10-01-2011, 03:59 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,
Quote:
Originally Posted by kenny724 View Post
ntpd service is stopped, but the time is still resetting. What else could it be? Thanks.
Could you give us a bit more information:

- Which Red Hat version are you using?
- Is it running as virtual machine?
- Is this a multiboot machine?
- Can you post the output of the following command:
Code:
chkconfig --list
Also: Have a look here: Managing Accurate Date and Time

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Red Hat Question SelaAragon Red Hat 6 04-04-2004 07:36 PM
Red Hat 9 to Red Hat EL Mozilla Migration Question rharvey@cox Linux - Software 2 01-13-2004 07:43 PM
Red Hat 9.0 question sbeaulieu Linux - Software 14 06-17-2003 12:08 PM
Red Hat 6.1 Question Halastar Linux - General 1 04-27-2002 04:46 PM


All times are GMT -5. The time now is 08:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration