blob: 4bf78770206b4996360e60bda6a40e45bdbaa8d4 [file] [log] [blame]
# Copyright 2016 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 Chromium OS biometrics daemon"
author "chromium-os-dev@chromium.org"
start on started system-services
stop on stopping system-services
respawn
respawn limit 3 10 # if the job respawns 3 times in 10 seconds, stop trying.
env LOG_DIR=/var/log/biod
pre-start script
mkdir -m 755 -p "${LOG_DIR}"
chown biod:biod "${LOG_DIR}"
end script
# biod doesn't do anything, so grant it no caps
exec minijail0 -u biod -g biod -G -c 0 -- \
/usr/bin/biod \
--log_dir=${LOG_DIR} \
>/var/log/biod.out 2>&1