summaryrefslogtreecommitdiff
path: root/news/nntpcache/files/nntpcached.in
blob: 42bb50cac5351f76198fbd71d3c7a881721f0c2c (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

# 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=`set_rcvar`

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"