opnsense-ports/net/igmpproxy/files/igmpproxy.in
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

32 lines
772 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: igmpproxy
# REQUIRE: NETWORKING
# KEYWORD: shutdown
# 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.
# igmpproxy_conf (path): Set full path to configuration file.
# Default is "%%PREFIX%%/etc/igmpproxy.conf"
. /etc/rc.subr
name="igmpproxy"
rcvar=igmpproxy_enable
procname="%%PREFIX%%/sbin/${name}"
command=/usr/sbin/daemon
required_files="%%PREFIX%%/etc/igmpproxy.conf"
load_rc_config $name
igmpproxy_enable=${igmpproxy_enable-"NO"}
igmpproxy_conf=${igmpproxy_config-"%%PREFIX%%/etc/igmpproxy.conf"}
command_args=" -cf $procname $igmpproxy_conf"
run_rc_command "$1"