aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pfstat
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-09-15 23:42:41 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-09-15 23:42:41 +0000
commit2bdc9659e8c51b18c552d16f134a21472ebec907 (patch)
treeebe1d368a7abbd341c3942c1d0105b6564ccf4fb /sysutils/pfstat
parent52b14c0ee567397fe2df0d34c908ddcfca202b2d (diff)
downloadports-2bdc9659e8c51b18c552d16f134a21472ebec907.tar.gz
ports-2bdc9659e8c51b18c552d16f134a21472ebec907.zip
- Add the rc.d script
Reported by: pav
Notes
Notes: svn path=/head/; revision=261241
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"