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

Unified Diff: boot-complete.conf

Issue 5868004: init: Update boot-complete to run at login-prompt-visible. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git@master
Patch Set: report boot-complete instead of login-prompt-ready Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | send_boot_metrics » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boot-complete.conf
diff --git a/boot-complete.conf b/boot-complete.conf
index 302012cbfaf4a03432c195b31085ed267fbbe0b2..f25eeb4509a12592b33bf4e4e9f0fee7d73c6069 100644
--- a/boot-complete.conf
+++ b/boot-complete.conf
@@ -2,28 +2,29 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# boot-complete
-#
-# Processing required during boot after login prompt is displayed.
-# Primarily, this means calculating boot time statistics.
+description "Send boot stats after login prompt is visible"
+author "chromium-os-dev@chromium.org"
+# This script is primarily responsible for sending boot time statistics
+# after we finish booting. Note that many other jobs also start on
+# "stopped boot-complete", though.
# Note, this line is modified by chromeos-factoryinstall.ebuild
# and mod_for_factory. Please do not change without also changing
# those references.
-start on login-prompt-ready
+start on login-prompt-visible
task
script
- # The login-prompt-ready signal is emitted every time the login
- # screen is displayed so the check below makes sure boot stats are
- # generated only once per boot.
- if [ -n "$(bootstat_last login-prompt-ready)" ]; then
+ # The login-prompt-visible signal is emitted every time the login
+ # screen is displayed. The check below makes sure boot stats are
+ # reported only once per boot.
+ if [ -n "$(bootstat_get_last boot-complete)" ]; then
exit 0
fi
- bootstat login-prompt-ready
+ bootstat boot-complete
# If ureadahead is still running, then presumably it's performing
# a boot trace. We only care about tracing until login prompt, so
« no previous file with comments | « no previous file | send_boot_metrics » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698