summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/sdpd
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2005-10-11 19:16:48 +0000
committeremax <emax@FreeBSD.org>2005-10-11 19:16:48 +0000
commitcf4406c1aad2a5376c68a3a05b83831476520440 (patch)
treee7683df66ddaedd463f7cb3a6d733a9bc6b994f1 /etc/rc.d/sdpd
parentb5eab5b239897e8bfabfb3e7af4dde6b080c59ab (diff)
downloadFreeBSD-src-cf4406c1aad2a5376c68a3a05b83831476520440.zip
FreeBSD-src-cf4406c1aad2a5376c68a3a05b83831476520440.tar.gz
Add rc.d scripts for the hcsecd(8) and sdpd(8) daemons. Put defaults into
/etc/defaults/rc.conf. Both daemons can run even if no Bluetooth devices are attached to the system. Both daemons depend on Bluetooth socket layer and thus disabled by default. Bluetooth sockets layer must be either loaded as a module or compiled into kernel before the daemons can run. MFC after: 1 month
Diffstat (limited to 'etc/rc.d/sdpd')
-rw-r--r--etc/rc.d/sdpd22
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/rc.d/sdpd b/etc/rc.d/sdpd
new file mode 100644
index 0000000..dc0ab1d
--- /dev/null
+++ b/etc/rc.d/sdpd
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: sdpd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name="sdpd"
+control="${sdpd_control:-/var/run/sdp}"
+group="${sdpd_group:-nobody}"
+user="${sdpd_user:-nobody}"
+command="/usr/sbin/${name}"
+command_args="-c ${control} -g ${group} -u ${user}"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud