Bug#376019: [pkg-ntp-maintainers] Bug#376019: /etc/default/ntpdate:NTPSERVERS could be initialised from ntp.conf

Kurt Roeckx kurt at roeckx.be
Thu Jun 29 18:26:08 UTC 2006


On Thu, Jun 29, 2006 at 08:01:12PM +0200, martin f krafft wrote:
> Package: ntpdate
> Version: 1:4.2.0a+stable-9
> Severity: wishlist
> 
> I use the following in /etc/default/ntpdate with success:
> 
>   NTPSERVERS="$(sed -rne 's/^server ([-_.[:alnum:]]+)$/\1/p'
>     /etc/ntp.conf 2>/dev/null || echo echo {0,1,2,3}.debian.pool.ntp.org)"
>   # override:
>   #NTPSERVERS="time.ethz.ch"
> 
> This works like a charm and I now can manage the servers only in
> ntp.conf. If we now pump up ntpdate to read default servers from
> here, all's well.

Currently it's possible to install ntpdate without having an
ntp.conf (which is part of ntp-server).  But the plan is to merge
those packages again, so something like this might be a good idea.


Kurt





More information about the pkg-ntp-maintainers mailing list