aboutsummaryrefslogtreecommitdiff
path: root/sysutils/dsbmd/files/dsbmd.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/dsbmd/files/dsbmd.in')
-rw-r--r--sysutils/dsbmd/files/dsbmd.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/dsbmd/files/dsbmd.in b/sysutils/dsbmd/files/dsbmd.in
new file mode 100644
index 000000000000..80f6303b517c
--- /dev/null
+++ b/sysutils/dsbmd/files/dsbmd.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: dsbmd
+# REQUIRE: LOGIN devfs devd mountlate
+# KEYWORD: shutdown
+#
+# Add these lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# dsbmd_enable (bool): Set to NO by default.
+# Set it to YES to enable dsbmd.
+#
+
+. /etc/rc.subr
+
+name=dsbmd
+rcvar=dsbmd_enable
+
+load_rc_config $name
+
+: ${dsbmd_enable:=NO}
+
+command=%%PREFIX%%/libexec/${name}
+pidfile=/var/run/${name}.pid
+
+run_rc_command "$1"