blob: c61d78946ee16bee0762d1896978c410f61b12f7 [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.
# Installed by ADHD package.
# cras upstart job.
description "Chrome OS audio server"
author "chromium-os-dev@chromium.org"
env CRAS_SOCKET_DIR=/run/cras
env CRAS_VMS_SOCKET_DIR=/run/cras/vms
start on starting system-services
stop on stopping system-services
respawn
# Allow the audio server real time priority.
limit rtprio 12 12
pre-start script
mkdir -p -m 1770 "${CRAS_SOCKET_DIR}"
chown -R cras:cras "${CRAS_SOCKET_DIR}"
mkdir -p -m 1770 "${CRAS_VMS_SOCKET_DIR}"
chown -R cras:cras "${CRAS_VMS_SOCKET_DIR}"
end script
exec /bin/sh /usr/share/cros/init/cras.sh