aboutsummaryrefslogtreecommitdiff
path: root/net/wired/files/wired.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/wired/files/wired.in')
-rw-r--r--net/wired/files/wired.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/net/wired/files/wired.in b/net/wired/files/wired.in
new file mode 100644
index 000000000000..a2ede8076392
--- /dev/null
+++ b/net/wired/files/wired.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: wired
+# REQUIRE:
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# wired_enable (bool): Set to NO by default.
+# Set it to YES to enable wired.
+#
+
+. /etc/rc.subr
+
+name="wired"
+rcvar=wired_enable
+
+pidfile=%%PREFIX%%/wired/wired.pid
+command=%%PREFIX%%/sbin/${name}
+
+load_rc_config $name
+
+: ${wired_enable="NO"}
+
+run_rc_command "$1"