aboutsummaryrefslogtreecommitdiff
path: root/news/newscache/files/newscache.in
diff options
context:
space:
mode:
Diffstat (limited to 'news/newscache/files/newscache.in')
-rw-r--r--news/newscache/files/newscache.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/news/newscache/files/newscache.in b/news/newscache/files/newscache.in
new file mode 100644
index 000000000000..57830d8ad51d
--- /dev/null
+++ b/news/newscache/files/newscache.in
@@ -0,0 +1,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"