Date: Sun, 14 Sep 1997 10:13:50 +0930 From: Greg Lehey <grog@lemis.com> To: Brian Somers <brian@awfulhak.org> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: rc & rc.conf Message-ID: <19970914101350.06261@lemis.com> In-Reply-To: <199709130916.KAA04290@awfulhak.demon.co.uk>; from Brian Somers on Sat, Sep 13, 1997 at 10:16:39AM %2B0100 References: <199709130916.KAA04290@awfulhak.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 13, 1997 at 10:16:39AM +0100, Brian Somers wrote:
> This is a disaster waiting to happen:
>
> /etc/rc.conf:
> [.....]
> inetd_enable="YES" # Run the network daemon displatcher (or NO).
> [.....]
> cron_enable="YES" # Run the periodic job daemon.
> [.....]
>
> /etc/rc:
> [.....]
> if [ "X${inetd_enable}" = X"YES" ]; then
> echo -n ' inetd'; inetd ${inetd_flags}
> fi
>
> if [ "X${cron_enable}" = X"YES" ]; then
> echo -n ' cron'; cron
> fi
> [.....]
I'm sorry, I must be too stupid. What's wrong with that? And how
does your fix fix it? Since the flags and the -enable have been
separated, it seems that we *should* insist on the exact string YES
for the enable flags.
Greg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970914101350.06261>
