Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 145704 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]
init.d script for open-iscsi-2.0.868-r1.ebuild
iscsid-init.d (text/plain), 1.59 KB, created by
Stefan Behte (RETIRED)
on 2008-03-09 22:39:51 UTC
(
hide
)
Description:
init.d script for open-iscsi-2.0.868-r1.ebuild
Filename:
MIME Type:
Creator:
Stefan Behte (RETIRED)
Created:
2008-03-09 22:39:51 UTC
Size:
1.59 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/files/iscsid-init.d,v 1.5 2008/03/09 08:26:46 craig Exp $ > >depend() { > after modules > use net >} > >checkconfig() { > if [ ! -f $CONFIG_FILE ]; then > eerror "Config file $CONFIG_FILE does not exist!" > return 1 > fi > if ! grep "^InitiatorName=iqn." ${INITIATORNAME_FILE} &>/dev/null; then > ewarn "${INITIATORNAME_FILE} should contain a string with your initiatior name" > IQN=iqn.$(date +%Y-%m).$(hostname -d).$(hostname -s):openiscsi > IQN=${IQN}-$(echo ${IQN} | 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 > opts="$@" > for m in ${modules}; do > ebegin "${msg} - ${m}" > modprobe ${opts} $m > ret=$? > eend $ret > [ $ret -ne 0 ] && return $ret > done > return 0 >} > >start() { > checkconfig > do_modules 'Loading iSCSI modules' 'scsi_transport_iscsi iscsi_tcp' > ret=$? > [ $ret -ne 0 ] && return 1 > ebegin "Starting ${SVCNAME}" > start-stop-daemon --start --quiet --exec /usr/sbin/iscsid -- ${OPTS} > ret=$? > eend $ret > return $ret >} > >stop() { > 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' '-r' > ret=$? > return $ret >} >
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