Fact: they should not do this.
Question: What software have you added to the standard Slackware 14.1 (other than the patches from, say, OSU or by some other method)?
The hardware clock, if set to UTC, will set the system (software) clock on boot by
/etc/rc.d/rc.S; on shutdown, the system time is written to the hardware clock by
/etc/rc.d/rc.6 when rebooting or the system time is written to the hardware clock by
/etc/rc.d/rc.0 on shut down (as in power off). Read that again, the hardware clock
is set on shut down or reboot. Keep that in mind: the system time is set from the hardware clock on boot, the hardware clock is set from the system time on shut down or reboot.
There is no mention of anything about hardware or software clocks in
/etc/rc.d/rc.M; it is what starts the NTP daemon.
The daemon will not synchronize with anything if the Internet is not available when it starts -- it may -- may -- start after some time when the internet becomes available (as in wireless getting connected manually after boot); however, if wireless is connected with WICD, your
/etc/resolv.conf file will have been wiped clean and you'll probably want to do the following:
On my laptop (a Dell 1750 running Slackware 14.1 64-bit), which is normally connected with an Ethernet cable to an always-on router, works just fine until I lug it somewhere and connect it with WICD to a wireless point. I keep a file,
/etc/resolv.bak that I simply copy to
/etc/resolv.conf in that case; it looks like this:
Code:
cat resolv.bak
search com
# AT&T DNS Servers
#nameserver 68.94.156.1
#nameserver 68.94.157.1
# Google Free DNS Servers
#nameserver 8.8.8.8
#nameserver 8.8.4.4
# HughesNet DNS Servers
nameserver 66.82.4.8
nameserver 66.82.4.12
The active DNS server addresses are the HughesNet ones (I have satellite service). The others may or may not be activated (un-commented) depending upon where I am at any given time using the laptop.
Likewise, if you don't have a connection to the Internet and you execute either
ntpdate <server> or
ntpd -g with no Internet connection, you don't get anything set.
ntpd -g will use the server(s) you have set in
/etc/ntp.conf (and that won't do any good if you don't have a connection the Internet
and entries in
/etc/resolv.conf so
0.us.pool.ntp.org can be resolved to a numeric address by a DNS server.
By the way, you really can't count on a router's DNS all the time; they tend to stop working after X amount of time has passed and you don't get no DNS from 'em (not always, but it's been my experience).
You can check what the time is in any system by simply booting the thing into the BIOS (or equivalent) and look at the clock; that's the hardware clock. It can be set to either local time or to UTC (you're in Oregon, that's local time plus seven hours during daylight time). Whatever it is set to, your system must "know" that, which is done with the
timeconfig utility. Pick one, pick the other and stick with it. Note that if your hardware clock is at UTC and you tell
timeconfig to use local time, that ain't gonna work too good if your system is configured as UTC:
Code:
cd /etc
grep UTC * 2>/dev/null
adjtime:UTC
hardwareclock:UTC
means that your system is expecting the hardware clock to be UTC and you want to set
timeconif appropriately (it's not going to hurt anything if the hardware clock is UTC, it also won't hurt anything if the hardware clock is local time but you've got to get that set correctly). You may need to shut down and boot back into BIOS and fiddle with the hardware clock time for local or UTC which will set the system clock to the "right" time on reboot. The system time (not the hardware time) will be set on boot from the hardware clock.
Bottom line: NTPD works if you let it.
Hope this helps some.