From owner-freebsd-hackers Sat Sep 13 02:17:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA02885 for hackers-outgoing; Sat, 13 Sep 1997 02:17:31 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA02854 for ; Sat, 13 Sep 1997 02:17:22 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id KAA04290 for ; Sat, 13 Sep 1997 10:16:39 +0100 (BST) Message-Id: <199709130916.KAA04290@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: freebsd-hackers@freebsd.org Subject: rc & rc.conf Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 13 Sep 1997 10:16:39 +0100 From: Brian Somers Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 suggest the following (and will commit it in the next few hours if nobody objects): Index: rc =================================================================== RCS file: /home/ncvs/src/etc/rc,v retrieving revision 1.135 diff -c -r1.135 rc *** rc 1997/08/17 15:02:34 1.135 --- rc 1997/09/13 09:15:40 *************** *** 218,228 **** # Now start up miscellaneous daemons that don't belong anywhere else # echo -n starting standard daemons: ! 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 --- 218,228 ---- # Now start up miscellaneous daemons that don't belong anywhere else # echo -n starting standard daemons: ! if [ "X${inetd_enable}" != X"NO" ]; then echo -n ' inetd'; inetd ${inetd_flags} fi ! if [ "X${cron_enable}" != X"NO" ]; then echo -n ' cron'; cron fi -- Brian , Don't _EVER_ lose your sense of humour....