Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122998 - ntp-client fails to find ntpdate at boot
Summary: ntp-client fails to find ntpdate at boot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 01:53 UTC by Andreas Schäfer
Modified: 2006-02-19 14:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schäfer 2006-02-16 01:53:41 UTC
Overview Description:
=====================

Hi,
I'm using ntp-4.2.0.20050303-r1. When I add /etc/init.d/ntp-client to my default bootlevel it won't start on reboot. In my syslog I get the following lines:

Feb 16 10:01:16 [rc-scripts] Please edit /etc/conf.d/ntp-client
Feb 16 10:01:16 [rc-scripts] Unable to locate the client command /usr/sbin/ntpdate!

My /etc/conf.d/ntp-client looks like this:

# /etc/conf.d/ntp-client
NTPCLIENT_CMD="/usr/sbin/ntpdate"
NTPCLIENT_OPTS=" -b -u pool.ntp.org"
NTPCLIENT_TIMEOUT=30

I have also tried this config:

# /etc/conf.d/ntp-client
NTPCLIENT_CMD="ntpdate"
NTPCLIENT_OPTS=" -b -u pool.ntp.org"
NTPCLIENT_TIMEOUT=30

But still ntp-client won't find the executable. Now, what's really weird is that when I log on and run "/etc/init.d/ntp-client start" manually it works fine. Any ideas?

Steps to Reproduce:
===================

1) emerge =ntp-4.2.0.20050303-r1
2) rc-update add ntp-client default
3) reboot

Actual Results:
===============

"/etc/init.d/ntp-client" yields "status:  stopped", time gets not set.

Expected Results:
=================

"/etc/init.d/ntp-client" should yield "status:  started" and the clock should be set.

Build Date & Platform:
======================

Emerge Info:
============
wintermute backups # emerge --info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r3 i686)
=================================================================
System uname: 2.6.15-gentoo-r3 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r1, 2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
LANG="de_DE@euro"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acpi alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts cdr crypt cups dba divx4linux doc dvd dvdread eds emacs emboss encode exif f77 foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 java jpeg kde libg++ libwww lirc mad mikmod mjpeg mmx motif mp3 mpeg musicbrainz mysql ncurses nls nsplugin nvidia ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline ruby sdl session slang spell sqlite sse ssl svga tcpd threads tiff truetype truetype-fonts type1-fonts usb vorbis x86 xcomposite xml2 xmms xprint xscreensaver xv xvid zlib elibc_glibc kernel_linux linguas_de linguas_en userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS
Comment 1 SpanKY gentoo-dev 2006-02-17 22:40:21 UTC
try upgrading baselayout/bash ... if that fails, try this:
unset PATH
hash -r
type -p /usr/sbin/ntpdate
Comment 2 Andreas Schäfer 2006-02-19 09:00:32 UTC
yo, baselayout-1.12.0_pre16-r1 fixes this.
thanks!
Comment 3 SpanKY gentoo-dev 2006-02-19 14:31:24 UTC
k