015351de04
This fixes a problem where ctld(8) would refuse to start on boot with a specific IP address to listen on configured in ctl.conf(5). It also fixes a problem where ctld(8) would fail to start with some network interfaces which require a sysctl.conf(5) tweak to configure them, eg to switch them from InfiniBand to IP mode. PR: 232397 Reported By: Mahmoud Al-Qudsi <mqudsi at neosmart.net> Submitted By: Jeremy Faulkner <gldisater at gmail.com> Reviewed By: mav Differential Revision: https://reviews.freebsd.org/D29578
24 lines
387 B
Bash
Executable File
24 lines
387 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: ctld
|
|
# REQUIRE: FILESYSTEMS NETWORKING
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="ctld"
|
|
desc="CAM Target Layer / iSCSI target daemon"
|
|
rcvar="ctld_enable"
|
|
pidfile="/var/run/${name}.pid"
|
|
command="/usr/sbin/${name}"
|
|
required_files="/etc/ctl.conf"
|
|
required_modules="ctl"
|
|
extra_commands="reload"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|