From owner-freebsd-hackers Thu Aug 26 19:21:45 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cc158233-a.catv1.md.home.com (cc158233-a.catv1.md.home.com [24.3.25.17]) by hub.freebsd.org (Postfix) with ESMTP id 7962D14BE7 for ; Thu, 26 Aug 1999 19:21:42 -0700 (PDT) (envelope-from sjr@home.net) Received: (from sjr@localhost) by cc158233-a.catv1.md.home.com (8.9.3/8.9.3) id WAA14818 for freebsd-hackers@FreeBSD.ORG; Thu, 26 Aug 1999 22:21:30 -0400 (EDT) (envelope-from sjr) Message-Id: <199908270221.WAA14818@cc158233-a.catv1.md.home.com> Date: Thu, 26 Aug 1999 22:21:30 -0400 (EDT) From: "Stephen J. Roznowski" Subject: How bullet-proof should the /etc/rc* scripts be? To: freebsd-hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to build a stripped down version of FreeBSD and have run across a few oddities in the startup scripts. 1. Should commands be wrapped in a check for their existance? For example: swapon, adjkerntz, etc. 2. Should everything be wrapped in a "rc.conf" variable? For example, the section with "mount -a -t nfs" (even though it silently exists if no NFS filesystems exist). 3. How much checking should be done before executing commands? As it stands now, if you don't have any ptys, the chflags/chmod/chown will fail -- should this be wrapped with an if statement? 4. What is the point of the "stty status '^T' at the top of the rc file? Shouldn't this be in the .profile/.login files? Thanks, -- Stephen J. Roznowski (sjr@home.net) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message