Resolves: sync up iscsid init scripts.

This commit is contained in:
Mike Christie 2010-05-11 22:48:30 +00:00
parent 5ebdd59579
commit 8f36c17ddd

View File

@ -37,6 +37,8 @@ force_start() {
echo -n $"Starting $prog: "
modprobe -q iscsi_tcp
modprobe -q ib_iser
modprobe -q cxgb3i
modprobe -q be2iscsi
daemon $prog
retval=$?
echo
@ -59,7 +61,7 @@ start() {
}
stop() {
declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser") )
declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
if [[ -n "${iparams[*]}" ]]; then
# We have active sessions, so don't stop iscsid!!
echo -n $"Not stopping $prog: iscsi sessions still active"
@ -73,6 +75,11 @@ stop() {
retval=$?
echo
# only remove the iscsi drivers when offload is used
rmmod cxgb3i 2>/dev/null
modprobe -r be2iscsi 2>/dev/null
modprobe -r ib_iser 2>/dev/null
modprobe -r iscsi_tcp 2>/dev/null