freebsd-ports/news/newscache/files/newscache.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

25 lines
411 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
sig_stop=KILL
load_rc_config ${name}
run_rc_command "$1"