From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 13:39:54 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 AB6471065674 for ; Thu, 24 Apr 2008 13:39:54 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail.networktest.com (mail.networktest.com [207.181.8.134]) by mx1.freebsd.org (Postfix) with ESMTP id ACCF88FC1D for ; Thu, 24 Apr 2008 13:39:54 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: by mail.networktest.com (Postfix, from userid 1002) id 4653778C76; Thu, 24 Apr 2008 06:39:54 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail.networktest.com X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from levi.local (cpe-75-83-207-192.socal.res.rr.com [75.83.207.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.networktest.com (Postfix) with ESMTPSA id 77EAB78C6C for ; Thu, 24 Apr 2008 06:39:47 -0700 (PDT) Message-ID: <48108DA2.1000502@networktest.com> Date: Thu, 24 Apr 2008 06:39:46 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ntpd not starting at boot time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 13:39:54 -0000 I've installed ntp-4.2.4p4 from ports on a FreeBSD 6.3/i386 system. The ntpd process does not start at boot time. These lines exists in /etc/rc.conf: ntpd_enable="YES" ntpd_program="/usr/local/bin/ntpd" ntpd_flags="-c /etc/ntp.conf -p /var/run/ntpd.pid" ntpd_sync_on_start="YES" Manually running '/etc/rc.d/ntpd start' produces this error: Starting ntpd. ERROR: only one configfile option allowed I've pasted the contents of ntp.conf and /etc/rc.d/ntpd files below. Thanks in advance for clues as to what's missing. dn ###### # BEGIN /etc/ntp.conf ###### server 127.127.26.0 fudge 127.127.26.0 time1 -0.949 server t1.timegps.net server t2.timegps.net restrict 207.181.8.128 mask 255.255.255.192 nomodify notrap driftfile /var/db/ntp.drift ###### # END /etc/ntp.conf ###### ###### # BEGIN /etc/rc.d/ntpd ###### # PROVIDE: ntpd # REQUIRE: DAEMON ntpdate cleanvar devfs # BEFORE: LOGIN # KEYWORD: nojail . /etc/rc.subr name=ntpd rcvar=`set_rcvar` #command="/usr/sbin/${name}" command="/usr/local/bin/${name}" pidfile="/var/run/${name}.pid" start_precmd="ntpd_precmd" load_rc_config $name required_files="${ntpd_config}" ntpd_precmd() { rc_flags="-c ${ntpd_config} ${ntpd_flags}" if checkyesno ntpd_sync_on_start; then rc_flags="-g $rc_flags" fi if [ -z "$ntpd_chrootdir" ]; then return 0; fi # If running in a chroot cage, ensure that the appropriate files # exist inside the cage, as well as helper symlinks into the cage # from outside. # # As this is called after the is_running and required_dir checks # are made in run_rc_command(), we can safely assume ${ntpd_chrootdir} # exists and ntpd isn't running at this point (unless forcestart # is used). # if [ ! -c "${ntpd_chrootdir}/dev/clockctl" ]; then rm -f "${ntpd_chrootdir}/dev/clockctl" ( cd /dev ; /bin/pax -rw -pe clockctl "${ntpd_chrootdir}/dev" ) fi ln -fs "${ntpd_chrootdir}/var/db/ntp.drift" /var/db/ntp.drift # Change run_rc_commands()'s internal copy of $ntpd_flags # rc_flags="-u ntpd:ntpd -i ${ntpd_chrootdir} $rc_flags" } run_rc_command "$1" ###### # END /etc/rc.d/ntpd ######