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