[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: system logs and localtime



Hi there,

On Tue, 4 Sep 2007 Tony Heal wrote:

> I have a remote server at a client site that had /etc/localtime
> pointing to Eastern instead of Central. I have fixed this. Is there
> a way for this to take affect without rebooting the server?

It has already taken effect.  You don't need to reboot.  Unless you're
playing with kernels or switching hardware, you'll very rarely need to
reboot a Linux box.

You will probably want to reset the (date and) time.  You can use the
'date' command at the root prompt.  I prefer not to do it by hand, it
isn't terribly accurate, and of course it doesn't maintain the clock
accurately.  Better to install the opennptd package:

apt-get install openntpd

and read the docs.  You will need to tell the daemon which timeservers
you want to use (low network latency to contact the servers is good)
by editing the configuration file.  Here's an /etc/openntpd/ntpd.conf
from my desktop in England:

8<------------------------

server 0.uk.pool.ntp.org
server 1.uk.pool.ntp.org
server 2.uk.pool.ntp.org
server 3.uk.pool.ntp.org

8<------------------------

Here's some background:

http://tldp.org/HOWTO/Clock.html#toc1
http://www.linuxsa.org.au/tips/time.html

--

73,
Ged.



Reply to: