From ef3aebe6a77b2e0a89f41e5dab6fe04188c4b298 Mon Sep 17 00:00:00 2001 From: Bertrand SIMONNET Date: Mon, 25 Aug 2014 18:27:48 -0700 Subject: [PATCH] metrics: Activate the uploader for embedded boards Now that the code is under tests, add an extra flag to metrics_daemon.conf to enable the uploader when chrome is not available. BUG=chromium:389222 TEST=build and deploy metrics on gizmo. metrics_daemon is running and the metrics are reported. CQ-DEPEND=CL:214286 Change-Id: I5daa72a95c3bf1c15387a40c6964be44bc6da082 Reviewed-on: https://chromium-review.googlesource.com/214285 Reviewed-by: Mike Frysinger Commit-Queue: Bertrand Simonnet Tested-by: Bertrand Simonnet --- metrics/init/metrics_daemon.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metrics/init/metrics_daemon.conf b/metrics/init/metrics_daemon.conf index 52fe90d46..3fc2dd7b4 100644 --- a/metrics/init/metrics_daemon.conf +++ b/metrics/init/metrics_daemon.conf @@ -16,5 +16,8 @@ pre-start script mkdir -p /var/lib/metrics end script +# metrics will update the next line to add -uploader for embedded builds. +env DAEMON_FLAGS="" + expect fork -exec metrics_daemon +exec metrics_daemon ${DAEMON_FLAGS}