liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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
 
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}"
end script
 
exec /bin/sh /usr/share/cros/init/cras.sh