xref: /freebsd/libexec/rc/rc.d/iovctl (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
1#!/bin/sh
2#
3#
4
5# PROVIDE: iovctl
6# REQUIRE: FILESYSTEMS sysctl
7
8. /etc/rc.subr
9
10name="iovctl"
11command="/usr/sbin/iovctl"
12start_cmd="iovctl_start"
13stop_cmd="iovctl_stop"
14
15run_iovctl()
16{
17	local _f flag
18
19	flag=$1
20	for _f in ${iovctl_files} ; do
21		if [ -r ${_f} ]; then
22			${command} ${flag} -f ${_f} > /dev/null
23		fi
24	done
25}
26
27iovctl_start()
28{
29	run_iovctl -C
30}
31
32iovctl_stop()
33{
34	run_iovctl -D
35}
36
37load_rc_config $name
38
39# doesn't make sense to run in a svcj: config setting
40iovctl_svcj="NO"
41
42run_rc_command "$1"
43