hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Question on server time
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Question on server time

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2003, 11:06 AM
petedes petedes is offline
Newbie
 
Join Date: Aug 2003
Posts: 8

Question on server time


Hello

I am having a problem with the time on my server. After a reboot, the time stamp is 40 minutes slow. I can issue a "date -s " command and fix it temporarily but when the server reboots again, the time is set back to 40 minutes behind. Any ideas on how to change the time on a server premanently?

Thanks
Pete

Reply With Quote


Sponsored Links
  #2  
Old 09-10-2003, 11:12 AM
RutRow RutRow is offline
Web Hosting Guru
 
Join Date: Mar 2001
Location: California
Posts: 332
Assuming a Linux box, you can use the hwclock command.

hwclock --systohc

man hwclock for more info.

Reply With Quote
  #3  
Old 09-10-2003, 11:16 AM
petedes petedes is offline
Newbie
 
Join Date: Aug 2003
Posts: 8
Sorry, forgot to mention the server OS, this is a redhat 7.2 box

Reply With Quote
Sponsored Links
  #4  
Old 09-10-2003, 03:33 PM
hiryuu hiryuu is offline
Web Hosting Master
 
Join Date: Jan 2003
Posts: 1,715
You may also want to look into ntpdate and ntpd to automatically maintain your server's clock.

__________________
Game Servers are the next hot market!
Slim margins, heavy support, fickle customers, and moronic suppliers!
Start your own today!

Reply With Quote
  #5  
Old 09-10-2003, 03:44 PM
fog fog is offline
Web Hosting Master
 
Join Date: Jun 2002
Posts: 1,373
Yes, hiryuu said it.

I'm not sure if it's standard with RedHat or not, but all the Linux boxes I use get ntpdate installed.

ntpdate allows you to sync clocks with known-accurate* time sources. You esentially just run "ntpdate server.dom" -- http://www.eecis.udel.edu/~mills/ntp/servers.html has a list of servers. (If you don't have ntpdate, you can grab it from rpmfind.net.) I'd highly recommend it.

* In theory. I've run ntpdate consecutively with different hosts and been off by about 45 minutes. This shouldn't happen, as it's usually precise to a fraction of a second; I think one of the clocks was just totally whacked.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host 1&1 Internet Adds Server Restoration Tool for Virtual Machines Web Hosting News 2012-11-07 15:45:16
Java-Based Web Server Resin Claims it Outperforms NGINX Web Server in Benchmark Tests Web Hosting News 2012-08-22 10:59:49
WHIR TV: Backup Software Firm R1Soft Discusses Brand Transition to Idera Whir Tv 2012-08-27 14:08:15
Web Host 1&1 Enhances Dedicated Server Line with 32 Core, 64 GB RAM Server Web Hosting News 2011-12-20 15:30:05
Apache Sees Largest Gain in Netcraft December Web Server Survey Web Hosting News 2011-12-12 18:21:22


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?