#!/bin/sh

# PROVIDE: iscsi_target
# REQUIRE: NETWORKING mountall quota

. /etc/rc.subr

name="iscsi_target"
rcvar=`set_rcvar`

command="/usr/local/bin/iscsi-target"
required_files="/usr/local/etc/iscsi/targets"
pidfile="/var/run/iscsi-target.pid"

load_rc_config $name

: ${iscsi_target_enable="NO"}
: ${iscsi_target_config="/usr/local/etc/iscsi/targets"}

command_args="-f $iscsi_target_config"

run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1