xref: /freebsd/libexec/rc/rc.d/ippool (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
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