Date: Thu, 25 May 1995 10:23:28 -0700 (PDT) From: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> To: taob@gate.sinica.edu.tw (Brian Tao) Cc: freebsd-current@FreeBSD.org Subject: Re: rwhod in /etc/rc Message-ID: <199505251723.KAA00786@gndrsh.aac.dev.com> In-Reply-To: <Pine.BSI.3.91.950525221237.26962K-100000@leo> from "Brian Tao" at May 25, 95 10:28:21 pm
next in thread | previous in thread | raw e-mail | index | archive | help
>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505251723.KAA00786>
