aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/bnbt/files/bnbt.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/bnbt/files/bnbt.in')
-rw-r--r--net-p2p/bnbt/files/bnbt.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/net-p2p/bnbt/files/bnbt.in b/net-p2p/bnbt/files/bnbt.in
new file mode 100644
index 000000000000..f8bde3c225cb
--- /dev/null
+++ b/net-p2p/bnbt/files/bnbt.in
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: bnbt
+# REQUIRE: LOGIN abi
+# BEFORE: securelevel
+# KEYWORD: shutdown
+
+# Add the following line to /etc/rc.conf to enable `bnbt':
+#
+# bnbt_enable="YES"
+# bnbt_flags="<set as needed>"
+#
+# See bnbt(1) for bnbt_flags
+#
+
+. /etc/rc.subr
+
+name="bnbt"
+rcvar=bnbt_enable
+
+# path to your executable, might be libxec, bin, sbin, ...
+command="%%PREFIX%%/bin/$name"
+
+# extra required arguments
+command_args="&"
+
+# you can check for required_dirs and required_vars too, see rc.subr(8)
+#
+required_dirs="/var/log/$name"
+
+# read settings, set default values
+load_rc_config "$name"
+: ${bnbt_enable="NO"}
+
+run_rc_command "$1"