1# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# Installed by ADHD package. 6# cras upstart job. 7 8description "Chrome OS audio server" 9author "chromium-os-dev@chromium.org" 10 11env CRAS_SOCKET_DIR=/run/cras 12 13start on starting system-services 14stop on stopping system-services 15respawn 16 17# Allow the audio server real time priority. 18limit rtprio 12 12 19 20pre-start script 21 mkdir -p -m 1770 "${CRAS_SOCKET_DIR}" 22 chown -R cras:cras "${CRAS_SOCKET_DIR}" 23end script 24 25exec /bin/sh /usr/share/cros/init/cras.sh 26