From owner-freebsd-current Thu May 25 10:24:07 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA01558 for current-outgoing; Thu, 25 May 1995 10:24:07 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id KAA01552 for ; Thu, 25 May 1995 10:24:05 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id KAA00786; Thu, 25 May 1995 10:23:28 -0700 From: "Rodney W. Grimes" Message-Id: <199505251723.KAA00786@gndrsh.aac.dev.com> Subject: Re: rwhod in /etc/rc To: taob@gate.sinica.edu.tw (Brian Tao) Date: Thu, 25 May 1995 10:23:28 -0700 (PDT) Cc: freebsd-current@FreeBSD.org In-Reply-To: from "Brian Tao" at May 25, 95 10:28:21 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1283 Sender: current-owner@FreeBSD.org Precedence: bulk > > As a followup to the rwhod patch, I've modified /etc/rc to create > the needed /var/rwho directory if it does not exist (idea taken from > the IRIX /etc/init.d/network file). I noticed that the boot files > toss in some comment about rwhod being a "time waster" or a > "performance pig" or "will saturate networks with many hosts". > FreeBSD's /etc/rc and /etc/sysconfig don't give any warning (although > it is turned off by default). > > > *** rc-old Thu May 25 22:08:42 1995 > --- rc Thu May 25 22:10:47 1995 > *************** > *** 184,189 **** > --- 184,192 ---- > # $rwhod is imported from /etc/sysconfig; > # if $rwhod is set to YES, rwhod is run. > if [ "X${rwhod}" = X"YES" ]; then > + if [ ! -d /var/rwho ]; then > + /bin/mkdir /var/rwho > + fi > echo -n ' rwhod'; rwhod > fi This patch is not needed for FreeBSD, by default all system installations already have a /var/rwho with the correct owner/group and modes set on it. The above change has the flaw that /var/rwho will probably end up being root:wheel 775 or possible 777 if the umask is changed someplace before we get to that code. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD