1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/sdpd 152690 2005-11-22 19:17:41Z emax $
| 3# $FreeBSD: head/etc/rc.d/sdpd 165683 2006-12-31 10:37:18Z yar $
|
4# 5 6# PROVIDE: sdpd 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 13name="sdpd" 14command="/usr/sbin/${name}" 15rcvar=`set_rcvar`
| 4# 5 6# PROVIDE: sdpd 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 13name="sdpd" 14command="/usr/sbin/${name}" 15rcvar=`set_rcvar`
|
16start_precmd="sdpd_prestart"
| 16required_modules="ng_btsocket"
|
17
| 17
|
18sdpd_prestart() 19{ 20 if ! kldstat -q -m ng_btsocket ; then 21 if kldload ng_btsocket > /dev/null 2>&1 ; then 22 info 'ng_btsocket module loaded' 23 else 24 warn 'ng_btsocket module failed to load' 25 return 1 26 fi 27 fi 28 29 return 0 30} 31
| |
32load_rc_config $name 33control="${sdpd_control:-/var/run/sdp}" 34group="${sdpd_groupname:-nobody}" 35user="${sdpd_username:-nobody}" 36command_args="-c ${control} -g ${group} -u ${user}" 37 38run_rc_command "$1"
| 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 24run_rc_command "$1"
|