From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 14:47:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24449106566B for ; Thu, 24 Apr 2008 14:47:24 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by mx1.freebsd.org (Postfix) with ESMTP id C63168FC0C for ; Thu, 24 Apr 2008 14:47:23 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080424145034.UQZE27050.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Thu, 24 Apr 2008 15:50:34 +0100 Received: from catflap.slightlystrange.org ([86.6.1.242]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080424144727.EYKC29112.aamtaout04-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Thu, 24 Apr 2008 15:47:27 +0100 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id DB9EA64A8; Thu, 24 Apr 2008 15:47:19 +0100 (BST) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by catflap.slightlystrange.org (Postfix) with ESMTPS id EA27461A5 for ; Thu, 24 Apr 2008 15:47:18 +0100 (BST) Received: (from danielby@localhost) by torus.slightlystrange.org (8.14.2/8.13.4/Submit) id m3OElG7T015159 for freebsd-questions@freebsd.org; Thu, 24 Apr 2008 15:47:16 +0100 (BST) (envelope-from freebsd-questions@slightlystrange.org) Date: Thu, 24 Apr 2008 15:47:16 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20080424144716.GA14477@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <48108DA2.1000502@networktest.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <48108DA2.1000502@networktest.com> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 7.0-RELEASE i386 Subject: Re: ntpd not starting at boot time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 14:47:24 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 24, 2008 at 06:39:46AM -0700, David Newman wrote: > I've installed ntp-4.2.4p4 from ports on a FreeBSD 6.3/i386 system. >=20 > The ntpd process does not start at boot time. These lines exists in=20 > /etc/rc.conf: >=20 > ntpd_enable=3D"YES" > ntpd_program=3D"/usr/local/bin/ntpd" > ntpd_flags=3D"-c /etc/ntp.conf -p /var/run/ntpd.pid" > ntpd_sync_on_start=3D"YES" >=20 > Manually running '/etc/rc.d/ntpd start' produces this error: >=20 > Starting ntpd. > ERROR: only one configfile option allowed >=20 > I've pasted the contents of ntp.conf and /etc/rc.d/ntpd files below. >=20 > Thanks in advance for clues as to what's missing. >=20 > ###### > # BEGIN /etc/rc.d/ntpd > ###### >=20 >=20 > # PROVIDE: ntpd > # REQUIRE: DAEMON ntpdate cleanvar devfs > # BEFORE: LOGIN > # KEYWORD: nojail >=20 > . /etc/rc.subr >=20 > name=3Dntpd > rcvar=3D`set_rcvar` > #command=3D"/usr/sbin/${name}" > command=3D"/usr/local/bin/${name}" > pidfile=3D"/var/run/${name}.pid" > start_precmd=3D"ntpd_precmd" >=20 > load_rc_config $name >=20 > required_files=3D"${ntpd_config}" >=20 > ntpd_precmd() > { > rc_flags=3D"-c ${ntpd_config} ${ntpd_flags}" You need to set ntpd_config to the path to your config file - as it is now, you are also setting it in ntpd_flags, which the above line then expands to something like this: rc_flags=3D"-c /path/in/ntpd_config -c /etc/ntp.conf...." So, remove it from your ntpd_flags definition and all should be well! Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgQnXQACgkQixf5fBYiFmr/6wCg0DjAWll+Im5H5eie2t0/w6MD F3kAni147ixTd2ZitAKBMamFDlrwiF3a =MhKl -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--