device-mapper-multipath/0004-RH-update-init-script.patch
Benjamin Marzinski a1478bc1bc Updated to latest upstream 0.4.9 code : multipath-tools-120123.tgz
(git commit id: 63704387009443bdb37d9deaaafa9ab121d45bfb)
Add 0001-RH-fix-async-tur.patch
Add 0002-RH-dont_start_with_no_config.patch
Add 0003-RH-multipath.rules.patch
Add 0004-RH-update-init-script.patch
Add 0005-RH-cciss_id.patch
Add 0006-RH-Make-build-system-RH-Fedora-friendly.patch
Add 0007-RH-multipathd-blacklist-all-by-default.patch
Add 0008-RH-add-mpathconf.patch
Add 0009-RH-add-find-multipaths.patch
Add 0010-RH-check-if-multipath-owns-path.patch
Add 0011-RH-add-hp_tur-checker.patch
2012-01-24 10:35:54 -06:00

77 lines
1.6 KiB
Diff

---
multipathd/multipathd.init.redhat | 27 ++++++---------------------
1 file changed, 6 insertions(+), 21 deletions(-)
Index: multipath-tools-111219/multipathd/multipathd.init.redhat
===================================================================
--- multipath-tools-111219.orig/multipathd/multipathd.init.redhat
+++ multipath-tools-111219/multipathd/multipathd.init.redhat
@@ -73,14 +73,6 @@ start() {
echo
}
-force_stop() {
- echo -n $"Stopping $prog daemon: "
- killproc $DAEMON
- RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
- echo
-}
-
stop() {
root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
@@ -89,7 +81,11 @@ stop() {
[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
fi
- force_stop
+ echo -n $"Stopping $prog daemon: "
+ killproc $DAEMON
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
+ echo
}
restart() {
@@ -97,11 +93,6 @@ restart() {
start
}
-force_restart() {
- force_stop
- start
-}
-
reload() {
echo -n "Reloading $prog: "
trap "" SIGHUP
@@ -117,18 +108,12 @@ start)
stop)
stop
;;
-force-stop)
- force_stop
- ;;
force-reload|reload)
reload
;;
restart)
restart
;;
-force-restart)
- force_restart
- ;;
condrestart|try-restart)
if [ -f $lockdir/$prog ]; then
restart
@@ -139,7 +124,7 @@ status)
RETVAL=$?
;;
*)
- echo $"Usage: $0 {start|stop|force-stop|status|restart|force-restart|condrestart|reload}"
+ echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
RETVAL=2
esac