On Mon, 14 Feb 2000, David Wolfskill wrote:
> I discovered this under 3.4-R, and checked that it's still the case
> for 4.0-RC.
FWIW, in my process of rewriting the rc* scripts I came across
quite a few of these extraneous messages/dependencies/etc. Improving this
situation is "on my list," but work has taken up much more of my time than
usual lately.
> -# Mount NFS filesystems.
> -echo -n "Mounting NFS file systems"
> -mount -a -t nfs
> +case ${nfs_client_enable} in
> +[Yy][Ee][Ss])
> + # Mount NFS filesystems.
> + echo -n "Mounting NFS file systems"
> + mount -a -t nfs
> + ;;
> +esac
> Downside is that it's possible that there are machines that actually *do*
> act as NFS clients, even though nfs_client_enable is not set affirmatively.
This is true, and it's a showstopper for the method you
describe. In general you should never increase dependencies in the startup
scripts if you can possibly avoid them. Far better is:
# Mount NFS filesystems.
if mount -d -a -t nfs; then
echo -n "Mounting NFS file systems"
mount -a -t nfs
echo .
fi
FWIW, I fully support this change and I'll send a pr if no one here picks
it up.
Doug
--
"Welcome to the desert of the real."
- Laurence Fishburne as Morpheus, "The Matrix"
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message