[armedslack] An ntp hint

Niels Horn niels.horn at gmail.com
Wed Sep 2 18:23:59 UTC 2009


On Wed, Sep 2, 2009 at 3:13 PM, Phil Ehrens<phil at slug.org> wrote:
> Phil Ehrens wrote:
>> Niels Horn wrote:
>> > To run after every boot, put in in /etc/rc.d/rc.local
>>
>> rc.local runs AFTER everything else... That's why Slackware
>> runs ntpd from rc.M. The clock needs to be synched before
>> logging and network services start.
>
> Oops, obviously, not before syslog... But in any case, it needs
> to be run at the same stage in the boot process as ntpd, and
> the Slackware rc.M does it at the right point.
>
>

I suggested putting it in rc.local as editing rc.M is not for
everyone... If you use your machine as a desktop, putting the ntpdate
command in rc.local is good enough most of the time, as your local
clock should be reasonably accurate. ntpdate then should only correct
any imprecisions that crept in between boots.

For servers it *is* better to edit rc.M and sync time before critical
services (like databases etc) start.

And sorry for the top-posting, I'm at work and using webmail at the moment :)

Niels




More information about the ARMedslack mailing list