diff options
Diffstat (limited to 'main/open-iscsi/iscsid.initd')
-rw-r--r-- | main/open-iscsi/iscsid.initd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/open-iscsi/iscsid.initd b/main/open-iscsi/iscsid.initd index 572b0a6ae5..fdc19c5cf7 100644 --- a/main/open-iscsi/iscsid.initd +++ b/main/open-iscsi/iscsid.initd @@ -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() { |