diff options
author | emax <emax@FreeBSD.org> | 2005-10-11 19:16:48 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2005-10-11 19:16:48 +0000 |
commit | cf4406c1aad2a5376c68a3a05b83831476520440 (patch) | |
tree | e7683df66ddaedd463f7cb3a6d733a9bc6b994f1 /etc/rc.d/hcsecd | |
parent | b5eab5b239897e8bfabfb3e7af4dde6b080c59ab (diff) | |
download | FreeBSD-src-cf4406c1aad2a5376c68a3a05b83831476520440.zip FreeBSD-src-cf4406c1aad2a5376c68a3a05b83831476520440.tar.gz |
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
Diffstat (limited to 'etc/rc.d/hcsecd')
-rw-r--r-- | etc/rc.d/hcsecd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/rc.d/hcsecd b/etc/rc.d/hcsecd new file mode 100644 index 0000000..445bf38 --- /dev/null +++ b/etc/rc.d/hcsecd @@ -0,0 +1,22 @@ +#!/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" |