server time

I can't seem to set the server/system time so that it stays the same upon reboot.

For example, I set the correct time in SP, and using 'date'.

But when I reboot, the date is wrong. It seems to me like the hardware clock is not set properly.

How do I set the hardware clock properly so that time stays the same on reboot?

I'm using v40z servers running Debian 2.6 686 bigmem

[408 byte] By [lukasz9000a] at [2007-11-26 15:53:47]
# 1

Setup xntpd on your system and let it handle all the details. For example, building a simple ntp.conf that just has 1 or 2 entries of the sort "server ip.address.of.server" and then doing a svcadm enable on the ntp daemon will work wonders! :)

Off the top of my head I can't remember for sure, but I think ntp.conf needs to be created in /etc/inet. The NTP man page tells you how, but I can't remember if it's man ntp, man ntpd or man xntpd :) I haven't setup a new system in a little while...

DoxBriana at 2007-7-8 22:14:18 > top of Java-index,Sun Hardware,Servers - General Discussion...
# 2
On solaris, 'date' should set both the system and hardware clocks.Running Linux, you may need to run hwclock --systohc to force the hardware clock to be updated.-- Darren
Darren_Dunhama at 2007-7-8 22:14:18 > top of Java-index,Sun Hardware,Servers - General Discussion...