From owner-freebsd-hackers Wed Apr 23 15:46:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA28294 for hackers-outgoing; Wed, 23 Apr 1997 15:46:19 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA28284 for ; Wed, 23 Apr 1997 15:46:07 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost.lan.awfulhak.org [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id XAA02216; Wed, 23 Apr 1997 23:31:07 +0100 (BST) Message-Id: <199704232231.XAA02216@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: "Jordan K. Hubbard" cc: hackers@freebsd.org Subject: Re: /etc/netstart bogons.. In-reply-to: Your message of "Wed, 23 Apr 1997 11:05:56 PDT." <2911.861818756@time.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Apr 1997 23:31:07 +0100 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > In /etc/netstart (and elsewhere) we have constructs of the form: > > if [ "x$gateway" != "xNO" ]; then > echo 'configuring host as a gateway.' > sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 > fi > > if [ "x$router" != "xNO" ] ; then > echo -n starting routing daemon: > echo -n " ${router}"; ${router} ${routerflags} > echo '.' > fi > > if [ "x$ipxgateway" != "xNO" ]; then > ... > > And so on. This is, needless to say, DEEPLY DEEPLY EVIL since it will [.....] While you're in there, I think things should be made consistent. The likes of "rwhod=" and "lpd=" should be "rwhodflags=" and "lpdflags=" etc (and it should be either "flags" or "_flags", not both). I like to run "lpd -l" and some people may not want 4 nfsiod servers running. A flags arg of NO turns things off. Defaults of whatever rc* uses at the moment should be mentioned as "good ideas" in the comments. I like the idea of a "summary" at the top of /etc/rc (oh, and netstart should be rc.net as someone mentioned a while ago): swapfile=NO dumpdev=NO syslogdflags=NO namedflags=NO ntpdate=NO xntpdflags=NO timedflags=NO sendmail_flags='-bd -q30m' etc. It wouldn't be too sloppy, and would give some raw defaults in case sysconfig is out of date or not there or something (as someone already pointed out). -- Brian , Don't _EVER_ lose your sense of humour....