#!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: $ depend() { after iscsid use net } PIDFILE=${PIDFILE:-/var/run/${SVCNAME}.pid} BINARY="/usr/sbin/brcm_iscsiuio" start() { ebegin "Starting ${SVCNAME}" start-stop-daemon --start --quiet --exec ${BINARY} -- ${OPTS} eend $? } stop() { ebegin "Stopping ${SVCNAME}" start-stop-daemon --stop --quiet --exec ${BINARY} --pidfile ${PIDFILE} eend $? }