1151240Semax#!/bin/sh 2151240Semax# 3151240Semax# $FreeBSD: releng/11.0/etc/rc.d/sdpd 298514 2016-04-23 16:10:54Z lme $ 4151240Semax# 5151240Semax 6151240Semax# PROVIDE: sdpd 7151240Semax# REQUIRE: DAEMON 8151240Semax# BEFORE: LOGIN 9180564Sdougb# KEYWORD: nojail shutdown 10151240Semax 11151240Semax. /etc/rc.subr 12151240Semax 13151240Semaxname="sdpd" 14298514Slmedesc="Bluetooth Service Discovery Protocol daemon " 15152462Semaxcommand="/usr/sbin/${name}" 16230099Sdougbrcvar="sdpd_enable" 17165683Syarrequired_modules="ng_btsocket" 18152462Semax 19152462Semaxload_rc_config $name 20151240Semaxcontrol="${sdpd_control:-/var/run/sdp}" 21152688Semaxgroup="${sdpd_groupname:-nobody}" 22152688Semaxuser="${sdpd_username:-nobody}" 23151240Semaxcommand_args="-c ${control} -g ${group} -u ${user}" 24151240Semax 25151240Semaxrun_rc_command "$1" 26