#!/bin/sh
#
# PROVIDE: host2cat
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run host2cat:
#
# host2cat_enable (bool):	Set it to "YES" to enable host2cat.
#				Default is "NO".
#
# host2cat_flags (flags):	Set required flags here.
# "-m $MEMCACHED_LIST -u $UDP_PORT -s $DNS_LIST -t $TTL"
#				example: -m 127.0.0.1:11211 -u 6666 -s 127.0.0.1 -t 3

. /etc/rc.subr

name="host2cat"
rcvar=`set_rcvar`

load_rc_config ${name}

command=/usr/local/bin/${name}
: ${host2cat_enable="NO"}
: ${host2cat_flags="-m 127.0.0.1:11211 -u 6666 -s 127.0.0.1 -t 3"}

run_rc_command "$1"
