#!/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=%%PREFIX%%/sbin/nntpcached required_files="%%PREFIX%%/etc/nntpcache/nntpcache.access %%PREFIX%%/etc/nntpcache/nntpcache.config %%PREFIX%%/etc/nntpcache/nntpcache.servers" : ${nntpcached_enable="NO"} run_rc_command "$1"