Shadow_7 escribiĂł:
>> So I restart ntpd and after a while I get my clock synchronized again,
>> so I understand that my configuration is OK, but I can't understand why
>> it does not work at boot time and it does after restart daemon manually.
>
> Perhaps ntpd is launching before the network is up. I've had similar
> problems with udev running too early if you disable other things like
> dbus, autofs, and the likes. Adjust the /etc/rc?.d/S## for ntpd and see
> if that helps. Higher numbers run later in the boot sequence.
>
> There's other things for timezone / date stuff as well. So maybe that's
> not quite right either. tzconfig, locales, /etc/timezone, /etc/localtime,
> and various other things that need setting up as well. Is the computer
> clock set to UTC or localtime? Are you rebooting to windows and it's
> adjusting for DST without syncing to a server? Even though you already
> adjusted for DST in linux.
>
> I had a similar problem once. Although I didn't sync or run ntpd at all.
> But every time my computer crashed, or otherwise shutdown without the use
> of shutdown(power outage), the clock got bumped four hours. Perhaps your
> computer is not shutting down right. All assumptions though as it's not
> my computer and I don't know how you have things setup, or not.
Hi,
In /etc/default/rcS, I have UTC=no (by default). In "Debian GNU/Linux
System Administrator's Manual. Chapter 16 - Time" it can be read: "To
change the computer to use UTC after installation, edit the file
/etc/default/rcS, change the variable UTC to no". I thought if you
wanted use UTC you should set the variable UTC to yes, but it seems on
the other hand.
When I boot my laptop in Windows, the clock is OK, but when I boot with
Linux, I get this problem.
My runlevel is 2, so I look at rc2.d. In rc2.d I have S23ntp and after
that: S25bluetooth, S89anacron, S89atd, S89cron, S99acpi-support,
S99rc.local, etc. So ntp is starting quite late in my boot sequence.
Thanks for your answer.
|