xref: /freebsd/libexec/rc/rc.d/dnctl (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
1#!/bin/sh
2#
3#
4
5# PROVIDE: dnctl
6# BEFORE: pf ipfw
7# KEYWORD: nojailvnet
8
9. /etc/rc.subr
10
11name="dnctl"
12desc="Dummynet packet queuing and scheduling"
13rcvar="${name}_enable"
14load_rc_config $name
15start_cmd="${name}_start"
16required_files="$dnctl_rules"
17required_modules="dummynet"
18
19# doesn't make sense to run in a svcj: config setting
20dnctl_svcj="NO"
21
22dnctl_start()
23{
24	startmsg -n "Enabling ${name}"
25	$dnctl_program "$dnctl_rules"
26	startmsg '.'
27}
28
29run_rc_command $*
30