Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 312723 Details for
Bug 456794
[RFE] init script for iscsi-target daemon program
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
A sample init script for iscsi-target daemon program
netbsd-iscsi (text/plain), 1.71 KB, created by
Satoru SATOH
on 2008-07-27 07:48:22 UTC
(
hide
)
Description:
A sample init script for iscsi-target daemon program
Filename:
MIME Type:
Creator:
Satoru SATOH
Created:
2008-07-27 07:48:22 UTC
Size:
1.71 KB
patch
obsolete
>#! /bin/bash ># ># netbsd-iscsi: init script for iscsi-target daemon in netbsd-iscsi. ># ># Author: Satoru SATOH <ssato@redhat.com> ># ># chkconfig: 345 80 30 ># description: NetBSD iSCSI (iscsi-target) is a iSCSI target program. ># processname: iscsi-target ># config: /etc/iscsi/initiatorname.iscsi ># config: /etc/iscsi/iscsid.conf ># config: /etc/iscsi/targets ># pidfile: /var/run/iscsi-target.pid ># >### BEGIN INIT INFO ># Provides: netbsd-iscsi ># Required-Start: network ># Required-Stop: ># Default-Start: 3 4 5 ># Default-Stop: 0 1 2 6 ># Short-Description: NetBSD iSCSI target ># Description: NetBSD iSCSI (iscsi-target) is a iSCSI target program. >### END INIT INFO > ># Source function library. >. /etc/init.d/functions > ># Source networking configuration. >. /etc/sysconfig/network > ># Check that networking is up. >[ ${NETWORKING} = "no" ] && exit 0 > > >SERVICE=netbsd-iscsi >PROCESS=iscsi-target >DAEMON=/usr/sbin/iscsi-target > >[ -x $DAEMON ] || exit 1 > >start() { > echo -n $"Starting $SERVICE: " > daemon $DAEMON > RETVAL=$? > echo > [ $RETVAL = 0 ] && touch /var/lock/subsys/$SERVICE > return $RETVAL >} > >stop() { > echo -n $"Stopping $SERVICE:" > killproc $PROCESS > RETVAL=$? > echo > if [ $RETVAL -eq 0 ]; then > rm -f /var/lock/subsys/$SERVICE > rm -f /var/run/$PROCESS.pid > fi > return $RETVAL >} > >restart() { > stop && start >} > >RETVAL=0 >case "$1" in > start) > start > RETVAL=$? > ;; > stop) > stop > RETVAL=$? > ;; > restart) > restart > RETVAL=$? > ;; > reload) > echo "$0 does not support configuration reloading, you have to restart it." > RETVAL=1 > ;; > status) > status $PROCESS > RETVAL=$? > ;; > *) > echo $"Usage: $0 {start|stop|restart|reload|status}" > RETVAL=1 >esac > >exit $RETVAL
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 456794
: 312723