Resolves: sync up iscsid init scripts.
This commit is contained in:
parent
5ebdd59579
commit
8f36c17ddd
@ -37,6 +37,8 @@ force_start() {
|
|||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
modprobe -q iscsi_tcp
|
modprobe -q iscsi_tcp
|
||||||
modprobe -q ib_iser
|
modprobe -q ib_iser
|
||||||
|
modprobe -q cxgb3i
|
||||||
|
modprobe -q be2iscsi
|
||||||
daemon $prog
|
daemon $prog
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
@ -59,7 +61,7 @@ start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
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
|
if [[ -n "${iparams[*]}" ]]; then
|
||||||
# We have active sessions, so don't stop iscsid!!
|
# We have active sessions, so don't stop iscsid!!
|
||||||
echo -n $"Not stopping $prog: iscsi sessions still active"
|
echo -n $"Not stopping $prog: iscsi sessions still active"
|
||||||
@ -73,6 +75,11 @@ stop() {
|
|||||||
retval=$?
|
retval=$?
|
||||||
echo
|
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 ib_iser 2>/dev/null
|
||||||
modprobe -r iscsi_tcp 2>/dev/null
|
modprobe -r iscsi_tcp 2>/dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user