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 | 7 env CROS_DISKS_LOG_FILE=/var/log/crosdisks.log |
Ben Chan
2011/04/13 15:11:47
How about naming it as cros-disks.log for consiste
| |
8 env CROS_DISKS_UID=213 | 8 env CROS_DISKS_UID=213 |
9 env CROS_DISKS_GID=213 | 9 env CROS_DISKS_GID=213 |
10 | 10 |
11 start on started dbus | 11 start on started dbus |
12 stop on starting halt or starting reboot | 12 stop on starting halt or starting reboot |
13 | 13 |
14 respawn | 14 respawn |
15 expect fork | 15 expect fork |
16 | 16 |
17 pre-start script | 17 pre-start script |
18 mkdir -p -m 0755 "${CROS_DISKS_LOG_DIR}" | 18 touch "${CROS_DISKS_LOG_FILE}" |
19 chown -R cros-disks:cros-disks "${CROS_DISKS_LOG_DIR}" | 19 chown -R cros-disks:cros-disks "${CROS_DISKS_LOG_FILE}" |
20 chmod 0755 "${CROS_DISKS_LOG_FILE}" | |
Ben Chan
2011/04/13 15:11:47
Should the log file permission be 0644?
And shoul
| |
20 end script | 21 end script |
21 | 22 |
22 exec /sbin/minijail --uid="${CROS_DISKS_UID}" --gid="${CROS_DISKS_GID}" -- /opt/ google/cros-disks/disks | 23 exec /sbin/minijail --uid="${CROS_DISKS_UID}" --gid="${CROS_DISKS_GID}" -- /opt/ google/cros-disks/disks |
23 | 24 |
OLD | NEW |