2005-10-11 21:16:48 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: sdpd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
2008-07-16 21:50:29 +02:00
|
|
|
# KEYWORD: nojail shutdown
|
2005-10-11 21:16:48 +02:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="sdpd"
|
2016-04-23 18:10:54 +02:00
|
|
|
desc="Bluetooth Service Discovery Protocol daemon "
|
2005-11-15 21:36:26 +01:00
|
|
|
command="/usr/sbin/${name}"
|
2012-01-14 03:18:41 +01:00
|
|
|
rcvar="sdpd_enable"
|
2006-12-31 11:37:18 +01:00
|
|
|
required_modules="ng_btsocket"
|
2005-11-15 21:36:26 +01:00
|
|
|
|
|
|
|
load_rc_config $name
|
2005-10-11 21:16:48 +02:00
|
|
|
control="${sdpd_control:-/var/run/sdp}"
|
2005-11-22 19:51:43 +01:00
|
|
|
group="${sdpd_groupname:-nobody}"
|
|
|
|
user="${sdpd_username:-nobody}"
|
2005-10-11 21:16:48 +02:00
|
|
|
command_args="-c ${control} -g ${group} -u ${user}"
|
|
|
|
|
|
|
|
run_rc_command "$1"
|