aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pfstat
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-09-16 07:42:41 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-09-16 07:42:41 +0800
commit73236f68154fef9927197535cbed9c206d3b410f (patch)
treedefa986ca8061a533a4dcf865bd92c79a4361da4 /sysutils/pfstat
parenteee54d5cba2a952fe4dc643692191d3986c265b8 (diff)
downloadfreebsd-ports-gnome-73236f68154fef9927197535cbed9c206d3b410f.tar.gz
freebsd-ports-gnome-73236f68154fef9927197535cbed9c206d3b410f.tar.zst
freebsd-ports-gnome-73236f68154fef9927197535cbed9c206d3b410f.zip
- Add the rc.d script
Reported by: pav
Diffstat (limited to 'sysutils/pfstat')
-rw-r--r--sysutils/pfstat/files/pfstatd.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/pfstat/files/pfstatd.in b/sysutils/pfstat/files/pfstatd.in
new file mode 100644
index 000000000000..3164373ede6d
--- /dev/null
+++ b/sysutils/pfstat/files/pfstatd.in
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#
+# $FreeBSD$
+#
+
+# PROVIDE: pfstatd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable pfstatd:
+# pfstatd_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable pfstatd
+. /etc/rc.subr
+
+name="pfstatd"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/${name}"
+
+load_rc_config ${name}
+run_rc_command "$1"