Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 170955 Details for
Bug 196096
sys-block/open-iscsi version-bumping thread: 2.0-870.3 available
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
iscsid-2.0.870.init.d
iscsid-2.0.870.init.d (text/plain), 2.26 KB, created by
Stefan Behte (RETIRED)
on 2008-11-07 02:04:48 UTC
(
hide
)
Description:
iscsid-2.0.870.init.d
Filename:
MIME Type:
Creator:
Stefan Behte (RETIRED)
Created:
2008-11-07 02:04:48 UTC
Size:
2.26 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2008 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: $ > >opts="${opts} starttargets stoptargets restarttargets" > >depend() { > after modules > use net >} > >checkconfig() { > if [ ! -f ${CONFIG_FILE} ]; then > eerror "Config file ${CONFIG_FILE} does not exist!" > return 1 > fi > if ! grep -q "^InitiatorName=iqn\." ${INITIATORNAME_FILE}; then > ewarn "${INITIATORNAME_FILE} should contain a string with your initiatior name." > IQN=iqn.$(date +%Y-%m).$(hostname -f | awk 'BEGIN { FS=".";}{x=NF; while (x>0) {printf $x ;x--; if (x>0) printf ".";} print ""}'):openiscsi > IQN=${IQN}-$(echo ${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM} | md5sum | sed -e "s/\(.*\) -/\1/g" -e 's/ //g') > ebegin "Creating InitiatorName ${IQN} in ${INITIATORNAME_FILE}" > echo "InitiatorName=${IQN}" >> ${INITIATORNAME_FILE} > eend $? > fi >} > >do_modules() { > msg="$1" > shift > modules="${1}" > shift > modopts="$@" > for m in ${modules} > do > if [ -n "$(modprobe -l | grep ${m})" ] > then > ebegin "${msg} ${m}" > modprobe ${modopts} ${m} > ret=$? > eend ${ret} > if [ ${ret} -ne 0 ]; then > return ${ret} > fi > else > ebegin "${msg} ${m}: not found" > return 1 > fi > done > return 0 >} > >start() { > checkconfig > ebegin "Loading iSCSI modules" > do_modules 'Loading' 'libiscsi scsi_transport_iscsi iscsi_tcp' > ret=$? > if [ $ret -ne 0 ]; then > eend 1 > return 1 > fi > > ebegin "Starting ${SVCNAME}" > start-stop-daemon --start --quiet --exec /usr/sbin/iscsid -- ${OPTS} > eend $? > starttargets >} > >stop() { > stoptargets > ebegin "Stopping ${SVCNAME}" > start-stop-daemon --signal HUP --stop --quiet --exec /usr/sbin/iscsid #--pidfile $PID_FILE > eend $? > > # 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 $? >} > >starttargets() { > ebegin "Setting up iSCSI targets" > /usr/sbin/iscsiadm -m node --loginall=automatic > eend $? >} > >stoptargets() { > ebegin "Disconnecting iSCSI targets" > sync > /usr/sbin/iscsiadm -m node --logoutall=all > eend $? >} > >restarttargets() { > stoptargets > starttargets >} > >status() { > ebegin "Showing current active iSCSI sessions" > /usr/sbin/iscsiadm -m session >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 196096
:
140592
|
140595
|
141566
|
145697
|
145699
|
145700
|
145703
|
145704
|
147185
|
147186
|
147187
|
152853
|
159650
|
159652
|
159654
|
170907
|
170952
|
170953
|
170955
|
171049
|
171050
|
174253
|
174255
|
185469
|
185471
|
185472