From owner-freebsd-rc@FreeBSD.ORG Mon Mar 25 01:43:04 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 BE9CD671; Mon, 25 Mar 2013 01:43:04 +0000 (UTC) (envelope-from john.marshall@riverwillow.com.au) Received: from mail4.riverwillow.net.au (mail4.riverwillow.net.au [202.125.45.59]) by mx1.freebsd.org (Postfix) with ESMTP id 578C3106; Mon, 25 Mar 2013 01:43:03 +0000 (UTC) Received: from rwpc15.mby.riverwillow.net.au (riverw1.lnk.telstra.net [165.228.239.138]) (authenticated bits=56) by mail4.riverwillow.net.au (8.14.6/8.14.6) with ESMTP id r2P1RhYW071547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 25 Mar 2013 11:27:45 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=m4001; t=1364174865; bh=c8/qJ4qpBg1Hp1/S3lhKEp3AnF3zXiTXSNe2LtBkLCA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ARvFogvSCMxR812g04WgSWgphZql/s7QGUk2rjPKb1ocXUlmINdXAp/YN+S80QEK6 kldYBTistsS8//YOa4SNbdee9vWjrNqiLBio5yP29ewWZBylJpWrUj0QQYlLh7oMhZ h/gIrUZ8ey7XZdwzPS96sBedOu0n4Jd6qF381x/U= Date: Mon, 25 Mar 2013 12:27:42 +1100 From: John Marshall To: Maurizio Giunti Subject: Re: conf/177089: ntpd startup script does not work well Message-ID: <20130325012741.GA35903@rwpc15.mby.riverwillow.net.au> References: <201303240114.r2O1EUvb005503@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201303240114.r2O1EUvb005503@freefall.freebsd.org> OpenPGP: id=A29A84A2; url=http://pki.riverwillow.com.au/pgp/johnmarshall.asc User-Agent: Mutt/1.5.21 (2010-09-15) 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 01:43:04 -0000 > 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