Date: Sat, 30 Jan 2010 12:30:26 -0300 From: Daniel Molina Wegener <dmw@coder.cl> To: freebsd-questions@freebsd.org Subject: Re: Replacing base NTP with ports NTP Message-ID: <201001301230.27224.dmw@coder.cl> In-Reply-To: <4B644B0D.60306@pdconsec.net> References: <4B644B0D.60306@pdconsec.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2522772.UYOCyxYV26 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Saturday 30 January 2010, David Rawling <djr@pdconsec.net> wrote: > Greetings all and sundry Hello David, >=20 > About 3 months ago I built myself a time server using 8.0-RC3, IIRC, and > I upgraded to 8.0-RELEASE (and now -p2). Naturally, as I want this > server to provide time services, I've installed the net/ntp port, among > others. >=20 > Recently, for reasons that have become lost in the mists of time, I > noticed that I wasn't running the port version of NTP > (/usr/local/sbin/ntpd), but the version installed with the base system > (/usr/sbin/ntpd). OK, rc.conf(5) does the trick. Look here for an overview of rc.conf: http://www.freebsd.org/doc/handbook/configtuning-rcd.html And try the next command to gather information about rc.conf(5): man 5 rc.conf Possibly you are looking for the /ntpd_program/ variable (from the manual page): =2D----8<----------8<----------8<----- ntpd_program (str) Path to ntpd(8) (default /usr/sbin/ntpd). =2D----8<----------8<----------8<----- >=20 > For the immediate term, I've renamed the base versions of the files in > /usr/sbin, and then symlinked to the port version (in /usr/local) - ntpd > is now the ports version, as are most of the tools. This does, however, > seem like a rather silly way of getting the most current NTPd running. Bad practice... ;) >=20 > I cannot, for the life of me, figure out how to get the Ports version of > NTP to overwrite the base system's NTP. Yet I'm sure (since there *is* a > port of NTP) there must be a better way to do this. No problem, just try the configuration above. Also, you do not need to restart the complete system, just proceed as follows: 1. As root stop ntpd: # /etc/rc.d/ntpd stop 2. Edit the /etc/rc.conf file... 3. Start ntpd: # /etc/rc.d/ntpd start >=20 > Can anyone point me in the direction of some documentation? >=20 > Dave. >=20 Best regards, =2D-=20 | Daniel Molina <dmw [at] coder [dot] cl> | | IT Consulting & Software Development | | Phone: +56 2 9790277 | http://coder.cl/ | --nextPart2522772.UYOCyxYV26 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAABCgAGBQJLZFCTAAoJEHxqfq6Y4O5NxhwP/AmNEl38IaTY0iWtlN5HDSPU 63xlqUboDEW082Nc5nPdzm51At7y2725UtdzD+toNH7Nyt34SmqNXORa5vsVe6lc OX1CrXLyXDkhLrP7qFA0LgRnhdJ+qnAoqAsvVg8so8s2sa4jDv9FVeLzRmApMWwX f/K92SJDd+habDNrMjCX7FfR5isuYGLR0lO/T3MqglW6HqjEhAXfu5kcGK4BoWyl GMt6KoPAan+XtFX1JQUSCi0YqeaS26we1A2f4SjTVq5OOnUEIDnpapuBZv7K6ic1 K62XYhZqcnba0Uroh6c7LszCyaMG32LfNRjOSbIujohbONE4hxgarHtlGx1DW1/x W7i+9lrs2Zt31yemuMCrOftq+IUShbqy0Ms4H1cfv3CDJFqfZsdHbqYc/LkLjLMC 5JNY+NLEtjGh4l1Zvq4nChb77rX0bL8x3YE2crZbwAi4DmvVMdDKqg9nnKC7WCP/ N5F8TkpyE74JYSUlrb5wx6nd/66n7e1WpSeIEjh9AelLsSUemlH7iabdPMvWCa9K HokauTo9xEG+SdUPwRB4LIGdLVwNhevvtR4p95GnYtIdjMxoopK4Dqg8NQ7m3CTW dn+7YYXVNV3uZRxndm/0RXKtOYP1giIvdLfV+ii1VUuVObSjNPeTq1fFHY/jrjNv DaKKWrp1Fu8TzcG6v/l/ =Tt8a -----END PGP SIGNATURE----- --nextPart2522772.UYOCyxYV26--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001301230.27224.dmw>