From owner-freebsd-hackers Sat Sep 13 17:44:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA09217 for hackers-outgoing; Sat, 13 Sep 1997 17:44:04 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA09177 for ; Sat, 13 Sep 1997 17:43:59 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id KAA25519; Sun, 14 Sep 1997 10:13:50 +0930 (CST) Message-ID: <19970914101350.06261@lemis.com> Date: Sun, 14 Sep 1997 10:13:50 +0930 From: Greg Lehey To: Brian Somers Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: rc & rc.conf References: <199709130916.KAA04290@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709130916.KAA04290@awfulhak.demon.co.uk>; from Brian Somers on Sat, Sep 13, 1997 at 10:16:39AM +0100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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