Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 1999 22:21:30 -0400 (EDT)
From:      "Stephen J. Roznowski" <sjr@home.net>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   How bullet-proof should the /etc/rc* scripts be?
Message-ID:  <199908270221.WAA14818@cc158233-a.catv1.md.home.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908270221.WAA14818>