OLD | NEW |
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # cros-disks upstart job | 5 # cros-disks upstart job |
6 | 6 |
7 env CROS_DISKS_LOG_DIR=/var/log/cros-disks | |
8 env CROS_DISKS_UID=213 | 7 env CROS_DISKS_UID=213 |
9 env CROS_DISKS_GID=213 | 8 env CROS_DISKS_GID=213 |
10 | 9 |
11 start on started dbus | 10 start on starting system-services and started dbus |
12 stop on starting halt or starting reboot | 11 stop on stopping system-services |
13 | 12 |
14 respawn | 13 respawn |
15 expect fork | 14 expect fork |
16 | 15 |
17 pre-start script | |
18 mkdir -p -m 0755 "${CROS_DISKS_LOG_DIR}" | |
19 chown -R cros-disks:cros-disks "${CROS_DISKS_LOG_DIR}" | |
20 end script | |
21 | |
22 exec /sbin/minijail --uid="${CROS_DISKS_UID}" --gid="${CROS_DISKS_GID}" -- /opt/
google/cros-disks/disks | 16 exec /sbin/minijail --uid="${CROS_DISKS_UID}" --gid="${CROS_DISKS_GID}" -- /opt/
google/cros-disks/disks |
23 | 17 |
OLD | NEW |