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

martin f krafft madduck at debian.org
Thu Jun 29 18:34:45 UTC 2006


also sprach Kurt Roeckx <kurt at roeckx.be> [2006.06.29.2026 +0200]:
> > 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.

Note how my solution actually handles this quite gracefully. :)

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck at debian.org>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-ntp-maintainers/attachments/20060629/479b1069/attachment.pgp


More information about the pkg-ntp-maintainers mailing list