#!/bin/sh

# $FreeBSD: ports/misc/yaunc/files/yaunc.in,v 1.2 2012/11/17 05:59:47 svnexp Exp $
#
# PROVIDE: yaunc
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# yaunc_enable (bool):   Set to NO by default.
#               Set it to YES to enable yaunc.
# yaunc_config (path):   Set to /usr/local/etc/yaunc.conf
#               by default.

. /etc/rc.subr

name="yaunc"
rcvar=yaunc_enable

command=/usr/local/bin/${name}

load_rc_config $name

: ${yaunc_enable="NO"}
: ${yaunc_config="/usr/local/etc/yaunc.conf"}

command_args="-f $yaunc_config"

run_rc_command "$1"
