Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2002 17:55:28 +0100
From:      Matthias Schuendehuette <msch@snafu.de>
To:        freebsd-stable@freebsd.org
Subject:   Enhancement for rc.shutdown
Message-ID:  <E16NGap-0006ym-00@smart.eusc.inter.net>

next in thread | raw e-mail | index | archive | help
Hello,

I did an enhancement for /etc/rc.shutdown and perhaps someone 
appreciates it (and commits it? :-).

I added commands to umount all vinum filesystems, because vinum can't 
be loaded twice (-> kern/30588).

If this is a totally forbidden way to publish such enhancements, please 
let me know.

Ciao/BSD - Matthias

--- /usr/src/etc/rc.shutdown	Thu Dec 20 18:56:21 2001
+++ /etc/rc.shutdown	Sun Jan  6 17:11:49 2002
@@ -95,6 +95,16 @@
 
 # Insert other shutdown procedures here
 
+#Umount vinum-filesystems and unload vinum
+
+echo -n 'umounting vinum filesystems and unloading vinum... '
+vinumfs=`grep ^/dev/vinum /etc/fstab | cut -f2`
+for fs in $vinumfs; do
+    /sbin/umount $fs
+done
+
+/sbin/vinum stop
+
 # Saving firewall state tables should be done last
 echo -n 'Saving firewall state tables:'
 

-- 
***************************************************************************
* Matthias Schuendehuette	msch@snafu.de	      	 		  *
* Solmsstrasse 44							  *
* D-10961 Berlin		Engineering Systems Support and Operation *
* Germany		      	(Powered by FreeBSD 4.5-PRERELEASE)   	  *
***************************************************************************

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16NGap-0006ym-00>