xref: /freebsd/libexec/rc/rc.d/ippool (revision 2008043f386721d58158e37e0d7e50df8095942d)
1#!/bin/sh
2#
3#
4
5# PROVIDE: ippool
6# REQUIRE: FILESYSTEMS
7# BEFORE:  ipfilter
8# KEYWORD: nojailvnet
9
10. /etc/rc.subr
11
12name="ippool"
13desc="user interface to the IPFilter pools"
14rcvar="ippool_enable"
15load_rc_config $name
16start_precmd="ippool_start_precmd"
17stop_cmd="${ippool_program} -F"
18reload_cmd="ippool_reload"
19extra_commands="reload"
20required_files="${ippool_rules}"
21required_modules="ipl:ipfilter"
22
23ippool_start_precmd()
24{
25	rc_flags="-f ${ippool_rules} ${rc_flags}"
26}
27
28ippool_reload()
29{
30	echo "Reloading IP Pools."
31	${stop_cmd}
32	${start_cmd}
33}
34
35
36run_rc_command "$1"
37