#!/bin/sh

# PROVIDE: nntpcached
# REQUIRE: NETWORKING SERVERS
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable nntpcached:
#
# nntpcached_enable="YES"
#

. /etc/rc.subr

name=nntpcached
rcvar=nntpcached_enable

load_rc_config $name

command=/usr/local/sbin/nntpcached
required_files="/usr/local/etc/nntpcache/nntpcache.access /usr/local/etc/nntpcache/nntpcache.config /usr/local/etc/nntpcache/nntpcache.servers"

: ${nntpcached_enable="NO"}

run_rc_command "$1"
