Hi,

I just went through the installation procedure for NTP-4.2.4p7 as
outlined in BLFS svn 20110620 and all was well until I tried to start
/etc/rc.d/init.d/ntp.

After issuing (as root):
/etc/rc.d/init.d/ntp start

I was greeted with the error message:
Starting ntpd...
ntpd: Command line arguments not allowed
ntpd - NTP daemon program - Ver. 4.2.4p7
USAGE:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...

(snipped -- followed by a list of valid options)

I took a look at the wiki/FAQ and did not find any mention of this
problem - so I decided to peruse the /etc/rc.d/init.d/ntp script
itself. As best I can tell, the error seems to occur on line 13 with
the following code block:

start)
                boot_mesg "Starting ntpd..."
                loadproc /usr/sbin/ntpd gx
                ;;

I changed this to (based upon the USAGE argument above):

start)
                boot_mesg "Starting ntpd..."
                loadproc /usr/sbin/ntpd -gx
                ;;

and everything seems to work fine.

It appears the "gx" should be changed to "-gx" in the bootscript - but
I would like the opinion of someone a bit more versed in shell
scripting.


Cheers,
mbw
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to