System information

*)
- echo $"Usage: $0 {condrestart|start|stop|restart|reload|status}"
- exit 1
+ echo $"Usage: $0 {condrestart|try-restart|start|stop|restart|reload|force-
reload|status}"
+ exit 2
esac
exit $RETVAL
device-mapper-multipath-0.4.7-17.el5.i386.rpm: /etc/rc.d/init.d/multipathd
---
+++
@@ -4,7 +4,7 @@
#
# Starts the multipath daem on
#
-# chkconfig: - 13 87
+# chkconfig: - 06 87
# description: Manage device-mapper m ultipath devices
# processname: multipathd
@@ -13,6 +13,7 @@
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
+syspath=/sys/block
system=redhat
@@ -25,6 +26,35 @@
test -r $sysconfig/$prog && . $sysconfig/$prog
RETVAL=0
+
+teardown_slaves()
+{
+cd $ 1;
+if [ -d "slaves" ]; then
+for slave in slaves/*;
+do
+ if [ "$slave" = "slaves/*" ]; then
+ read dev < $1/dev
+ tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev
.*/\1/p"`
+ if ! [ -z $tablename ]; then
+ echo "Root is on a multipathed device, multipathd can not be stopped"
+ exit 1
+ fi
+ else
+ local_slave=`readlink -f $slave`;
+ teardown_slaves $local_slave;
+ fi
+ done
+
+else
+ read dev < $1/dev
+ tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev
.*/\1/p"`
+ if ! [ -z $tablename ]; then
+ echo "Root is on a multipathed device, multipathd can not be stopped"
13. Configuration Changes From Previous Release
189