From owner-freebsd-rc@FreeBSD.ORG Mon Mar 25 17:12:42 2013 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3A10CC67; Mon, 25 Mar 2013 17:12:42 +0000 (UTC) (envelope-from giunti@mgshareware.com) Received: from mail.mgshareware.com (mail.mgshareware.com [46.37.15.207]) by mx1.freebsd.org (Postfix) with ESMTP id ED81330B; Mon, 25 Mar 2013 17:12:41 +0000 (UTC) Received: from [192.168.10.77] (host8-91-static.34-79-b.business.telecomitalia.it [79.34.91.8]) (Authenticated sender: maurizio@mauriziogiunti.it) by mail.mgshareware.com (Postfix) with ESMTPA id F0B04508C5; Mon, 25 Mar 2013 18:12:33 +0100 (CET) Message-ID: <51508580.1010103@mgshareware.com> Date: Mon, 25 Mar 2013 18:12:32 +0100 From: Maurizio Giunti User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: John Marshall Subject: Re: conf/177089: ntpd startup script does not work well References: <201303240114.r2O1EUvb005503@freefall.freebsd.org> <20130325012741.GA35903@rwpc15.mby.riverwillow.net.au> In-Reply-To: <20130325012741.GA35903@rwpc15.mby.riverwillow.net.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2013 17:12:42 -0000 John, you are absolutely right! I added the flags you suggested and now ntpd starts and stops as expected. Thank you! Just in case, I still can't get -L flag work, exactly as described here: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/128886 Have you any idea about it? :) Best, Maurizio Il 25/03/2013 02:27, John Marshall ha scritto: >> Calling /etc/rc.d/ntpd stop issue an error "ntpd not running? (check /var/run/ntpd.pid)." but ntpd is active! > Please check to see if you have set ntpd_flags in your /etc/rc.conf. > Note the default contents of this variable in /etc/defaults/rc.conf > > ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift" > > If you define ntpd_flags in your /etc/rc.conf, you override the default > ntpd_flags. In order to retain the expected behaviour of the rc script, > you need to include the default ntpd_flags in your modified variable. > So, if you want to pass other flags to ntpd, then you would put this in > your /etc/rc.conf > > ntpd_flags=" -p /var/run/ntpd.pid -f /var/db/ntpd.drift" > > Please let us know if this solves your problem so that the PR can be > closed. >