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