blob: 93a4a9da9fea2ce0e5978f90767ce3275b3deca1 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Start the bluetooth daemon"
author "chromium-os-dev@chromium.org"
start on starting system-services
stop on stopping system-services
env BLUETOOTH_LIBDIR=/var/lib/bluetooth
env BLUETOOTH_RUNDIR=/var/run/bluetooth
pre-start script
mkdir -p -m 0750 ${BLUETOOTH_LIBDIR} ${BLUETOOTH_RUNDIR}
chown -R bluetooth:bluetooth ${BLUETOOTH_LIBDIR} ${BLUETOOTH_RUNDIR}
end script
respawn
script
ulimit -l unlimited
exec /sbin/minijail0 -u bluetooth -g bluetooth -G \
-c 3500 -- \
/usr/libexec/bluetooth/bluetoothd --nodetach
end script