Date: Mon, 25 Mar 2013 12:27:42 +1100 From: John Marshall <john.marshall@riverwillow.com.au> To: Maurizio Giunti <giunti@mgshareware.com> Cc: freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: conf/177089: ntpd startup script does not work well Message-ID: <20130325012741.GA35903@rwpc15.mby.riverwillow.net.au> In-Reply-To: <201303240114.r2O1EUvb005503@freefall.freebsd.org> References: <201303240114.r2O1EUvb005503@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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="<other 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130325012741.GA35903>