#!/bin/sh
#
# $FreeBSD: ports/news/newscache/files/newscache.in,v 1.2 2012/11/17 06:00:42 svnexp Exp $
#
# PROVIDE: newscache
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable newscache:
#
# newscache_enable="YES"
# newscache_flags="<set as needed>"

newscache_enable=${newscache_enable-"NO"}

. /etc/rc.subr

name=newscache
rcvar=newscache_enable

command=/usr/local/sbin/${name}
pidfile=/var/run/${name}.pid
sig_stop=KILL

load_rc_config ${name}
run_rc_command "$1"
