From owner-freebsd-bugs Wed Nov 6 07:20:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA24750 for bugs-outgoing; Wed, 6 Nov 1996 07:20:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA24721; Wed, 6 Nov 1996 07:20:03 -0800 (PST) Resent-Date: Wed, 6 Nov 1996 07:20:03 -0800 (PST) Resent-Message-Id: <199611061520.HAA24721@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:"from knight.cons.org (knight.cons.org [194.233.237.86]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA24015 for" ; Wed, 6 Nov 1996 07:10:05.-0800 (PST) Received: (from cracauer@localhost) by knight.cons.org (8.7.5/8.7.3) id QAA07070; Wed, 6 Nov 1996 16:09:54 +0100 (MET) Message-Id: <199611061509.QAA07070@knight.cons.org> Date: Wed, 6 Nov 1996 16:09:54 +0100 (MET) From: cracauer@cons.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1968: rdate(8) implementation (from NetBSD) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1968 >Category: bin >Synopsis: FreeBSD has no rdate(8), here's one >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 6 07:20:02 PST 1996 >Last-Modified: >Originator: Martin Cracauer >Organization: private >Release: FreeBSD 2.2-960801-SNAP i386 >Environment: All FreeBSD versions >Description: FreeBSD has no rdate(8). While NTP is probably better, I like to have a utility around that can synchronize 'ad hoc' to a given host. I can imagine the following situations where rdate(8) may be better than NTP: - You want to synchronize to a host whose clock is just wrong, but you don't care for the correct time, just it has to be the same on a second machine you are root on. - In an environment where I know one host has a perfect clock, I just add an rdate run to the crontab and don't set up NTP at all. Therefore, I request to add rdate(8) to FreeBSD as an addition to NTP. >How-To-Repeat: shell$ rdate gatekeeper.dec.com rdate: not found >Fix: This is rdate(8) from NetBSD, including one C source file, a manual page in source format and a Makefile. You will have to make cosmetic changes I don't know about to add this to FreeBSD, probably under src/usr.sbin/rdate/. Please remember to let the copyright of the original author (Christos Zoulas) intact. I have nit changed the code. I have tested that this source not only compiles on my FreeBSD machines, it also sets the time right and the time is reflected to the system hardware clock (no wonder :-). begin 644 rdate.tar.gz M36%K969I;&4````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M`````````````#$P,#8V-"``("`@,3'`@)`H*4%)/1ST)7)I9VAT("AC*2`Q M.3DT($-H7)I M9VAT"BY<(B`@("!N;W1I8V4L('1H:7,@;&ES="!O9B!C;VYD:71I;VYS(&%N M9"!T:&4@9F]L;&]W:6YG(&1I2!#:')I2!N;W0@8F4@=7-E9"!T;R!E M;F1O2!S M:V5W('1H92!L;V-A;"!T:6UE('1O('1H90IR96UO=&4@=&EM92!R871H97(@ M=&AA;B!J=7-T(&AO<'!I;F2!N;W0@8F4@=7-E9"!T;R!E;F1O7,O<&%R86TN:#X*(VEN8VQU9&4@/'-T9&EO+F@^"B-I;F-L=61E(#QC='EP M92YH/@HC:6YC;'5D92`\7,O=&EM92YH M/@HC:6YC;'5D92`\'1EPH)*'9O:60I(&9P'1E MPH)"75S86=E*"D["@D)PH)"7-P(#T@)G-S<#L*"0ES<"T^F5R;R@FF5O9B!S M82D["@ES82YS:6Y?9F%M:6QY(#T@049?24Y%5#L*"7-A+G-I;E]P;W)T(#T@ MPH)("`@('-TPH)"2`@("!T=BYT=E]S96,@/2!T:6T["@D)("`@('1V+G1V M7W5S96,@/2`P.PH)"2`@("!I9B`HPH)"2`@("!S=')U8W0@=&EM979A;"!T=E]C M=7)R96YT.PH)"2`@("!I9B`H9V5T=&EM96]F9&%Y*"9T=E]C=7)R96YT+"!. M54Q,*2`]/2`M,2D*"0D)("`@(&5R2(I.PH)"2`@("!A9&IU2`E9"!S96-O;F1S7&XB+`H)"0D)("`@7U]PAudit-Trail: >Unformatted: