2005-10-11 19:16:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: sdpd
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
|
|
|
# KEYWORD: nojail
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="sdpd"
|
2005-11-15 20:36:26 +00:00
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
rcvar=`set_rcvar`
|
|
|
|
start_cmd="sdpd_start"
|
|
|
|
|
|
|
|
sdpd_start()
|
|
|
|
{
|
|
|
|
kldload ng_btsocket > /dev/null 2>&1
|
|
|
|
${command} ${command_args}
|
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
2005-10-11 19:16:48 +00:00
|
|
|
control="${sdpd_control:-/var/run/sdp}"
|
|
|
|
group="${sdpd_group:-nobody}"
|
|
|
|
user="${sdpd_user:-nobody}"
|
|
|
|
command_args="-c ${control} -g ${group} -u ${user}"
|
|
|
|
|
|
|
|
run_rc_command "$1"
|