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 |