From owner-freebsd-ports Mon Apr 9 9:51:57 2001 Delivered-To: freebsd-ports@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id EC6EC37B423 for ; Mon, 9 Apr 2001 09:51:51 -0700 (PDT) (envelope-from Cy.Schubert@uumail.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id JAA31369; Mon, 9 Apr 2001 09:51:45 -0700 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda31367; Mon Apr 9 09:51:36 2001 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.2/8.9.1) id f39GpUB52247; Mon, 9 Apr 2001 09:51:30 -0700 (PDT) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdT50462; Mon Apr 9 09:50:47 2001 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.3/8.9.1) id f39Gokn05375; Mon, 9 Apr 2001 09:50:46 -0700 (PDT) Message-Id: <200104091650.f39Gokn05375@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdmO5359; Mon Apr 9 09:49:53 2001 X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-Sender: schubert To: Peter Pentchev Cc: Vincent Deffontaines , Cy.Schubert@uumail.gov.bc.ca, ports@FreeBSD.org Subject: Re: question about FreeBSD Port: ntp-4.0.99k In-reply-to: Your message of "Mon, 09 Apr 2001 19:14:20 +0300." <20010409191420.B2827@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 09 Apr 2001 09:49:53 -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'll keep this short as I've got a busy day. The config file tells ntpd/xntpd, among other things, which time servers to use. The driftfile records the offset of the local clock. Take a look at ntp.conf(5) for more info. If you don't want the default path (/usr/local) all you have to do is modify ntpdate_enable, ntpdate_program, ntpdate_flags, xntpd_enable, xntpd_program, and xntpd_flags in rc.conf, e.g. ntpdate_enable="YES" # Run ntpdate to sync time on boot (or NO). ntpdate_program="/usr/local/bin/ntpdate" # path to ntpdate, if you want a different one. ntpdate_flags="-o 2 -s time1 time2 time3" # Flags to ntpdate (if enabled). xntpd_enable="YES" # Run ntpd Network Time Protocol (or NO). xntpd_program="/usr/local/bin/ntpd" # path to ntpd, if you want a different one. xntpd_flags="-p /var/run/ntpd.pid -c /etc/ntp.conf" # Flags to ntpd (if enabled). Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/Alpha Team Internet: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD, ISTA Province of BC In message <20010409191420.B2827@ringworld.oblivion.bg>, Peter Pentchev writes: > Hmm maybe I missed something here - having never actually used ntpd.. > When you stop and restart it, or when you reboot the system, you might > have to copy some config files to the same locations under /usr/local; > e.g. copy /etc/ntpd.conf to /usr/local/etc/ntpd.conf or something. > I'm really not too clear on what config or state files ntpd uses, > so maybe someone more knowledgeable should fill that in. > > G'luck, > Peter > > -- > This sentence is false. > > On Mon, Apr 09, 2001 at 07:01:58PM +0300, Peter Pentchev wrote: > > Hi, and congratulations for not abandoning FreeBSD at the first problem :) > > > > No, seriously - you are not making a mistake at all. This is the case > > with several programs which are included in the base system, yet are > > being actively developed, and have newer versions also included as ports. > > Other such examples are Perl, GCC and (for old FreeBSD systems) SSH. > > > > One of the basic premises of the FreeBSD ports system is that it installs > > everything under a common 'prefix' - /usr/local by default - so that it > > is easy to distinguish between base system software - everything outside > > /usr/local - and software packages installed later. This also helps > > when you have to scratch a system clean to isolate some fault - it is > > a nice idea to start off with cleaning or completely removing /usr/local, > > with the complete assurance that you shall be left with a perfectly > > working FreeBSD system. > > > > The best solution in your case would be to tell the system startup > > scripts to use your newly-installed version of ntpd, and not the old > > one; to do this, edit your /etc/rc.conf file, and add the following > > line to the end (or change it if it occurs earlier): > > > > xntpd_program="/usr/local/bin/ntpd" > > > > ..then either restart your system (not really needed, but the best > > way to provide a clean startup), or just do: > > > > killall ntpd > > /usr/local/bin/ntpd -p /var/run/ntpd.pid > > > > ..and you should be all set :) > > Of course, if you've changed xntpd_flags in /etc/rc.conf, use your > > new flags instead of '-p /var/run/ntpd.pid' :) > > > > If you are interested in other things you can change in your /etc/rc.conf > > script, take a loot (but DO NOT MODIFY) /etc/defaults/rc.conf - it lists > > some variables, their default values, and some comments for each. > > > > Hope that helps! :) > > > > G'luck, > > Peter > > > > -- > > If this sentence didn't exist, somebody would have invented it. > > On Mon, Apr 09, 2001 at 05:44:09PM +0200, Vincent Deffontaines wrote: > > > Hi > > > > > > Sorry for emailing you directly, gonna try to make this short. > > > I am a bit new to freebsd, so probably what im gonna ask you can be > > > found somewhere else... sorry about that... > > > > > > I saw security updates on ntp (actually saw that on debian/linux) > > > So I decided to upgrade my freebsd servers as well. > > > Most of them are running 4.2 stable, with ntp-4.0.99i > > > > > > So I do a cvsup -no problem- and I run a "make&&make install" in > > > /usr/ports/net/ntp (version ntp-4.0.99k) > > > > > > The problem is, -I think- file locations have changed. so this update > > > installs new ntpd version in /usr/local/bin/ntpd, while the ancient one > > > seems to be in /usr/sbin/ntpd > > > By the way, install of new version doesnt delete old version of ntpd. > > > > > > So if I kill existing ntpd, and launch the new one just doing "ntpd -p > > > /var/run/ntpd.pid", I think it runs the old version :-( > > > > > > Where am I mistaking? > > > > > > Thanks for your help, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message