freebsd-skq/etc/rc.d/sdpd
emax cf4406c1aa 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
2005-10-11 19:16:48 +00:00

23 lines
362 B
Bash

#!/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"