Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51906 - ntp unknow option -Q
Summary: ntp unknow option -Q
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: 2004-05-24 04:44 UTC by Ruben de Heras Calleja
Modified: 2004-05-24 11:45 UTC (History)
0 users

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 Ruben de Heras Calleja 2004-05-24 04:44:28 UTC
[net-misc/ntp-4.2.0-r2]

changing 'ntpdate' to 'ntpd' in the /etc/conf.d/ntp-client configuration file yield in the following output:

$ /etc/init.d#./ntp-client start
 * Setting clock via the ntp client 'ntpd'...
ntpd: unknown option -Q
usage: ntpd [ -abdgmnqx ] [ -c config_file ] [ -e e_delay ]
                [ -f freq_file ] [ -k key_file ] [ -l log_file ]
                [ -p pid_file ] [ -r broad_delay ] [ -s statdir ]
                [ -t trust_key ] [ -v sys_var ] [ -V default_sysvar ]
                [ -P fixed_process_priority ]
                [ -u user[:group] ] [ -i chrootdir ]
 * Failed to set clock

This seems to because in the init.d script stays 

${NTPCLIENT_CMD} -Q ${NTPCLIENT_OPTS} >/dev/null

changing '-Q' to '-q' seems to work it out, but i'm not sure if i'm missing something arround...

Reproducible: Always
Steps to Reproduce:
1. update /etc/conf.d/ntp-client with NTPCLIENT_CMD="ntpd"
2. /etc/init.d#./ntp-client start

Actual Results:  
* Setting clock via the ntp client 'ntpd'... 
ntpd: unknown option -Q 
usage: ntpd [ -abdgmnqx ] [ -c config_file ] [ -e e_delay ] 
                [ -f freq_file ] [ -k key_file ] [ -l log_file ] 
                [ -p pid_file ] [ -r broad_delay ] [ -s statdir ] 
                [ -t trust_key ] [ -v sys_var ] [ -V default_sysvar ] 
                [ -P fixed_process_priority ] 
                [ -u user[:group] ] [ -i chrootdir ] 
 * Failed to set clock 


Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 
2.4.25-gentoo-r2) 
================================================================= 
System uname: 2.4.25-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz 
Gentoo Base System version 1.4.10 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X alsa apm arts avi berkdb bsh crypt cups doc encode esd foomaticdb gdbm 
gif gpm gtk2 guile imlib innodb jabber java javascript jpeg kde ldap libg++ 
libwww mad mikmod mmx motif mozilla mpeg msn mysql ncurses nls oci8 odbc 
oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline ruby 
samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype usb x86 xml2 xmms 
xv yahoo zlib"
Comment 1 SpanKY gentoo-dev 2004-05-24 11:45:17 UTC
fixed in cvs

edit your init.d script and remove the -Q if you want to use 'ntpd' as your client