xref: /freebsd/libexec/rc/rc.d/ctld (revision 67be1e195acfaec99ce4fffeb17111ce085755f7)
1#!/bin/sh
2#
3#
4
5# PROVIDE: ctld
6# REQUIRE: FILESYSTEMS NETWORKING
7# BEFORE:  DAEMON
8# KEYWORD: nojail
9
10. /etc/rc.subr
11
12name="ctld"
13desc="CAM Target Layer / iSCSI target daemon"
14rcvar="ctld_enable"
15pidfile="/var/run/${name}.pid"
16command="/usr/sbin/${name}"
17required_files="/etc/ctl.conf"
18required_modules="ctl"
19extra_commands="reload"
20
21load_rc_config $name
22
23# doesn't make sense to run in a svcj: nojail keyword
24ctld_svcj="NO"
25
26run_rc_command "$1"
27