[PLUG] Running ntpdate at boot

Denis Heidtmann denis.heidtmann at gmail.com
Sun Nov 29 04:46:33 UTC 2009


I have been trying to figure out how to run ntpdate -bu pool.ntp.org
at boot.  I can put it in the startup set, but since ntpdate requires
running as root, I would have to enter the pw at each boot.  I need to
avoid the need for the pw, which I believe means  having it run before
login.

I have changed /etc/default/ntpdate to include pool.ntp.org and added
the -bu options so that ntpdate-debian works (if run as root).  One
conversation on ubuntu forums said that that those changes to
/etc/default/ntpdate were all that was needed; that ntpdate-debian was
already run during boot.  That does not appear to be the case.  I have
been unable to understand the stuff about the various symbolic links
in /etc/re*.d   I think also there is an issue of the order of the
scripts running at boot:  ntpdate must run after the network is
established.

So the question in its most general form is how to run ntpdate -bu
pool.ntp.org without my intervention.  If my attempts at this are
close, what does it take to get ntpdate-debian to run during boot?
Some of the docs seem to indicate that should be a default condition
of ubuntu Jaunty.

Thanks for the help,
-Denis



More information about the PLUG mailing list