diff --git a/libexec/rc/rc.d/ippool b/libexec/rc/rc.d/ippool index 42cef3faf7eb..527e1fc780b2 100755 --- a/libexec/rc/rc.d/ippool +++ b/libexec/rc/rc.d/ippool @@ -1,36 +1,39 @@ #!/bin/sh # # # PROVIDE: ippool # REQUIRE: FILESYSTEMS # BEFORE: ipfilter # KEYWORD: nojailvnet . /etc/rc.subr name="ippool" desc="user interface to the IPFilter pools" rcvar="ippool_enable" load_rc_config $name start_precmd="ippool_start_precmd" stop_cmd="${ippool_program} -F" reload_cmd="ippool_reload" extra_commands="reload" required_files="${ippool_rules}" required_modules="ipl:ipfilter" ippool_start_precmd() { rc_flags="-f ${ippool_rules} ${rc_flags}" + if [ -n "${ifilter_optionlist}" ]; then + ${ipfilter_program:-/sbin/ipf} -T "${ipfilter_optionlist}" + fi } ippool_reload() { echo "Reloading IP Pools." ${stop_cmd} ${start_cmd} } run_rc_command "$1"