freebsd-skq/etc/rc.d/hcsecd
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
357 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: hcsecd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail
. /etc/rc.subr
name="hcsecd"
config="${hcsecd_config:-/etc/bluetooth/${name}.conf}"
command="/usr/sbin/${name}"
command_args="-f ${config}"
pidfile="/var/run/${name}.pid"
required_files="${config}"
rcvar=`set_rcvar`
load_rc_config $name
run_rc_command "$1"