conf/57659: Exit status from /etc/rc.d/mountcritlocal is ignored

Yar Tikhiy yar at comp.chem.msu.su
Tue Oct 7 06:40:11 PDT 2003


The following reply was made to PR conf/57659; it has been noted by GNATS.

From: Yar Tikhiy <yar at comp.chem.msu.su>
To: freebsd-gnats-submit at FreeBSD.org
Cc: mtm at FreeBSD.org
Subject: Re: conf/57659: Exit status from /etc/rc.d/mountcritlocal is ignored
Date: Tue, 7 Oct 2003 17:35:34 +0400

 As my further investigation has revealed, it's just a problem of
 /etc/rc.d/mountcritlocal.  It should stop startup on a mount failure,
 but won't actually.  I'd suggest applying the patch attached.  By
 the way, the script /etc/rc.d/mountcritremote seems to have the
 same problem.
 
 -- 
 Yar
 
 --- /usr/src/etc/rc.d/mountcritlocal	Mon Jun  2 19:45:55 2003
 +++ ./mountcritlocal	Tue Oct  7 16:44:28 2003
 @@ -43,6 +43,9 @@
  		*)
  			echo 'Mounting /etc/fstab filesystems failed,' \
  			    ' startup aborted'
 +			if [ "$autoboot" = yes ]; then
 +				kill -TERM $$
 +			fi
  			exit 1
  			;;
  		esac


More information about the freebsd-bugs mailing list