xref: /freebsd/libexec/rc/rc.d/sdpd (revision f99f0ee14e3af81c23150a6a340259ca8a33d01a)
1#!/bin/sh
2#
3#
4
5# PROVIDE: sdpd
6# REQUIRE: DAEMON
7# BEFORE: LOGIN
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11
12name="sdpd"
13desc="Bluetooth Service Discovery Protocol daemon "
14command="/usr/sbin/${name}"
15rcvar="sdpd_enable"
16required_modules="ng_btsocket"
17
18load_rc_config $name
19control="${sdpd_control:-/var/run/sdp}"
20group="${sdpd_groupname:-nobody}"
21user="${sdpd_username:-nobody}"
22command_args="-c ${control} -g ${group} -u ${user}"
23
24# doesn't make sense to run in a svcj: nojail keyword
25sdpd_svcj="NO"
26
27run_rc_command "$1"
28