Commit c9cc396f authored by Natanael Copa's avatar Natanael Copa

main/open-iscsi: do not unload kernel modules when stopping service

fixes #653
(cherry picked from commit 214deaf9)
parent 5bbd39ad
......@@ -2,7 +2,7 @@
pkgname=open-iscsi
pkgver=2.0.872
_realver=${pkgver%.*}-${pkgver##*.}
pkgrel=1
pkgrel=2
pkgdesc="High performance, transport independent, multi-platform iSCSI initiator"
url="http://www.open-iscsi.org"
arch="all"
......@@ -40,5 +40,5 @@ package() {
}
md5sums="b4df94f08c241352bb964043b3e44779 open-iscsi-2.0-872.tar.gz
3e89cb86395756dafebc4f1490f0de10 iscsid.initd
95cc696720bb9f267f38ac69d5c2e07c iscsid.initd
b762b687d4628791b4362df22cf22d34 iscsid.confd"
......@@ -84,16 +84,16 @@ start() {
}
stop() {
local ret=
stoptargets
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --signal HUP --stop --quiet --exec /usr/sbin/iscsid #--pidfile $PID_FILE
eend $?
ret=$?
eend $ret
# ugly, but pid file is not removed by iscsid
rm -f $PID_FILE
do_modules 'Removing iSCSI modules' 'iscsi_tcp scsi_transport_iscsi libiscsi' '-r'
eend $?
return $ret
}
starttargets() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment