aboutsummaryrefslogtreecommitdiff
path: root/news/newscache/files/newscache.in
blob: 57830d8ad51d90f4115c29e4622923fdc992b3a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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"