aboutsummaryrefslogtreecommitdiff
path: root/news/nntpcache/files/nntpcached.in
diff options
context:
space:
mode:
Diffstat (limited to 'news/nntpcache/files/nntpcached.in')
-rw-r--r--news/nntpcache/files/nntpcached.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/news/nntpcache/files/nntpcached.in b/news/nntpcache/files/nntpcached.in
new file mode 100644
index 000000000000..691fc250f3c6
--- /dev/null
+++ b/news/nntpcache/files/nntpcached.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# PROVIDE: nntpcached
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD 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"
+procname=nntpcached
+
+nntpcached_enable=${nntpcached_enable:-"NO"}
+
+run_rc_command "$1"