Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 31969

Summary: ntp-client init.d script fails when using dnscache
Product: Gentoo Linux Reporter: Olivier Castan <castan.o>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: svcscan init.d script patch

Description Olivier Castan 2003-10-25 06:41:16 UTC
ntp-client, which calls ntpdate, fails if you sync with a ntp server using its
fqdn when using dnscache as local dns cache. That's because, in my case,
ntp-client is started before svcscan (which controls dnscache).

Reproducible: Always
Steps to Reproduce:





To correct, just add "before ntp-client" in the depend() call in svcscan init.d
script.

# emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon -O3 -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://212.219.56.146/sites/www.ibiblio.org/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://194.83.57.15/sites/www.ibiblio.org/gentoo/
http://212.219.56.152/sites/www.ibiblio.org/gentoo/
ftp://ftp.rhnet.is/pub/gentoo/ http://212.219.56.131/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg kde libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
alsa gdbm berkdb slang readline arts tetex aalib bonobo svga ggi tcltk java X
sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif
opengl mozilla cdr scanner 3dnow dga dv dvd faad fbcon ffmpeg gstreamer gtk2
gtkhtml mmx ppds sse tiff usb wmf xface xml"
Comment 1 Olivier Castan 2003-10-25 06:42:25 UTC
Created attachment 19765 [details, diff]
svcscan init.d script patch
Comment 2 SpanKY gentoo-dev 2003-10-29 22:22:03 UTC
the ntp init.d scripts have 'use dns' in their depend() functions ...

if your svscan provides dns capabilities i would suggest adding 'provide
dns' to its depend() function ... see http://www.gentoo.org/doc/en/rc-scripts.xml
for more details