'pidof /sbin/fcoemon' shows the pid of the currently running fcoemon.
It does not show all the running fcoemon. This patch is to issue
'pidof fcoemon' to show all the pids of the fcoemon and kill each
one of them in the beginning of service_stop() routine of the startup
script.

Signed-off-by: Steve Ma <[email protected]>
---

 usr/etc/initd/initd.fedora |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/usr/etc/initd/initd.fedora b/usr/etc/initd/initd.fedora
index 3071a2d..c2768cd 100755
--- a/usr/etc/initd/initd.fedora
+++ b/usr/etc/initd/initd.fedora
@@ -188,8 +188,10 @@ service_start()
 
 service_stop()
 {
-       pidof $FCOEMON
-       [ $? -eq 0 ] && kill -TERM `pidof $FCOEMON`
+       for pid in `pidof fcoemon`
+       do
+               kill -TERM $pid
+       done
 
        for ifcfg_file in `ls $CONFIG_DIR/cfg-eth*`
        do

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to