xref: /freebsd/libexec/rc/rc.d/ippool (revision c57c26179033f64c2011a2d2a904ee3fa62e826a)
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
16
17# doesn't make sense to run in a svcj: config setting
18ippool_svcj="NO"
19
20start_precmd="ippool_start_precmd"
21stop_cmd="${ippool_program} -F"
22reload_cmd="ippool_reload"
23extra_commands="reload"
24required_files="${ippool_rules}"
25required_modules="ipl:ipfilter"
26
27ippool_start_precmd()
28{
29	rc_flags="-f ${ippool_rules} ${rc_flags}"
30}
31
32ippool_reload()
33{
34	echo "Reloading IP Pools."
35	${stop_cmd}
36	${start_cmd}
37}
38
39
40run_rc_command "$1"
41