blob: 720aea780e22b653a7521e2f0d048d436b0de309 [file] [log] [blame]
# Copyright 2018 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 bluetooth log"
author "chromium-os-dev@chromium.org"
stop on stopping ui
expect fork
# Restart before OOM panic
oom score 0
# Arbitrary number given negligible memory usage
limit as 30000000 unlimited
env BLUETOOTH_LOGDIR=/var/log/bluetooth
pre-start script
rm -rf "${BLUETOOTH_LOGDIR}"
mkdir -p -m 0750 "${BLUETOOTH_LOGDIR}"
chown -R bluetooth:chronos-access "${BLUETOOTH_LOGDIR}"
end script
exec /usr/bin/start_bluetoothlog.sh