I to have this problem...
because this script can't find /usr/local/etc/${name}.conf

I try like this....

#!/bin/sh
#
# $FreeBSD: ports/net/igmpproxy/files/igmpproxy.in,v 1.2 2010/03/27 00:13:45 dougb Exp $
#

# PROVIDE: igmpproxy
# REQUIRE: NETWORKING

# The following variables are provided to control startup of igmpproxy
# rc configuration file (eg /etc/rc.conf):
# igmpproxy_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable igmpproxy.

. /etc/rc.subr

name="igmpproxy"
rcvar=`set_rcvar`
command="/usr/local/sbin/${name}"
required_files="/usr/local/etc/igmpproxy.conf"
igmpproxy_enable=${igmpproxy_enable-"NO"}
command_args=" $required_files"

load_rc_config $name

run_rc_command "$1"

It metod too have some problem... It starting and wait, wait and wait.
who help fix the bag about start like daemon?