Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: cros-disks.conf

Issue 6838011: adds a signal, fixes a crash, adds syslogging, and marshals disks to d-bus (Closed) Base URL: ssh://gitrw.chromium.org:9222/cros-disks.git@master
Patch Set: reverts a commom.mk change Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Makefile ('k') | cros-disks.xml » ('j') | disk.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « Makefile ('k') | cros-disks.xml » ('j') | disk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698