fcoe-utils/fcoe-utils-1.0.7-init-condrestart.patch

21 lines
505 B
Diff
Raw Normal View History

--- fcoe-utils-1.0.7/etc/initd/initd.fedora 2009-03-27 21:40:22.000000000 +0100
+++ fcoe-utils-1.0.7/etc/initd/initd.fedora.update 2009-04-03 09:54:39.000000000 +0200
service_status()
@@ -245,6 +245,8 @@ service_status()
else
echo "Created interfaces: $IF_LIST"
fi
+ test -f /var/lock/subsys/fcoe
+ return $@
}
case "$1" in
@@ -284,6 +286,7 @@ case "$1" in
;;
status)
service_status
+ exit $?
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"