Running ntpdate from cron.daily
Stephen Kuhn
yank.down.under at gmx.com
Sun Jul 17 22:33:10 UTC 2011
On Sun, 2011-07-17 at 09:38 +0100, Colin Law wrote:
> In order to keep the SheevaPlug that controls my weather station time
> synchronised I followed the instructions in [1] and created a file
> etc/cron.daily/ntpdate containing
> ntpdate ntp.ubuntu.com
> and made it executable. This did not work and I realised that I
> needed to start the file with
> #! /bin/bash
> and then it worked fine. Before I go and edit the wiki can someone
> confirm that I have correctly analysed the problem.
>
You can set options for ntpdate in the /etc/default/ntpdate file, along
with the /etc/ntp.conf => this would allow you to not have a script at
all, and just modify the configurations directly from either of these
two files; so you'd not need a cron job. HTH.
--
yankdownunder
reg'd linux user #267497
--------------------------------------
Veni, Vidi, volo in domum redire.
--------------------------------------
I run linux, now go STFU.
More information about the ubuntu-users
mailing list