From owner-freebsd-rc@FreeBSD.ORG Mon Mar 25 02:30:02 2013 Return-Path: Delivered-To: freebsd-rc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 75168CE8 for ; Mon, 25 Mar 2013 02:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 67660258 for ; Mon, 25 Mar 2013 02:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2P2U1Uu008729 for ; Mon, 25 Mar 2013 02:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2P2U1Ff008728; Mon, 25 Mar 2013 02:30:01 GMT (envelope-from gnats) Date: Mon, 25 Mar 2013 02:30:01 GMT Message-Id: <201303250230.r2P2U1Ff008728@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org Cc: From: John Marshall Subject: Re: conf/177089: ntpd startup script does not work well X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Marshall 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 02:30:02 -0000 The following reply was made to PR conf/177089; it has been noted by GNATS. From: John Marshall To: bug-followup@FreeBSD.org Cc: Subject: Re: conf/177089: ntpd startup script does not work well Date: Mon, 25 Mar 2013 13:28:19 +1100 [fowarded message - forgot to add bug-followup@ to the Cc: list] Date: Mon, 25 Mar 2013 12:27:41 +1100 From: John Marshall To: Maurizio Giunti Cc: freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: conf/177089: ntpd startup script does not work well User-Agent: Mutt/1.5.21 (2010-09-15) > 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. -- John Marshall