Move archive shutdown timestamp AFTER log preservation.

My recent change to chromeos_shutdown archived off system logs AFTER the
timestamp for "finished archiving" timestamp is saved off. This throws off
metrics for system restarts in which system logs are preserved by the 10s of
seconds it takes to copy them.

Contents of the preserve metrics dir after a clobber reboot.

ls -al /mnt/stateful_partition/unencrypted/preserve/log/metrics

total 72
drwxr-xr-x  4 chronos chronos 4096 Nov 22 19:56 .
drwxrwxr-t 10 root    syslog  4096 Nov 22 19:50 ..
-rw-------  1 root    root       8 Nov 22 19:13 Logging.AnyCrashesDaily
-rw-------  1 root    root       8 Nov 22 19:13 Logging.AnyCrashesWeekly
-rw-------  1 root    root       8 Nov 22 19:13 Logging.KernelCrashInterval
-rw-------  1 root    root       8 Nov 22 19:13 Logging.KernelCrashesDaily
-rw-------  1 root    root       8 Nov 22 19:13 Logging.KernelCrashesWeekly
-rw-------  1 root    root       8 Nov 22 19:13 Logging.UncleanShutdownsDaily
-rw-------  1 root    root       8 Nov 22 19:13 Logging.UncleanShutdownsWeekly
-rw-------  1 root    root       8 Nov 22 19:13 Logging.UserCrashInterval
-rw-------  1 root    root       8 Nov 22 19:13 Logging.UserCrashesDaily
-rw-------  1 root    root       8 Nov 22 19:13 Logging.UserCrashesWeekly
drwxr-xr-x  2 root    root    4096 Nov 22 19:56 before_preserve.20131122195636
-rw-------  1 root    root       8 Nov 22 19:13 daily-usage
drwxr-xr-x  2 root    root    4096 Nov 22 19:56 shutdown.20131122195636
-rw-r--r--  1 root    root      24 Nov 22 19:49 shutdown_start
-rw-r--r--  1 root    root      24 Nov 22 19:49 shutdown_stop
-rw-rw-rw-  1 root    root    3111 Nov 22 19:56 uma-events

BUG=chromium:318988
TEST=Build/local push

Change-Id: Idf7fff3d1734de03861541021025d3c04caa3e0b
Reviewed-on: https://chromium-review.googlesource.com/176726
Tested-by: Don Garrett <[email protected]>
Reviewed-by: Richard Barnette <[email protected]>
Commit-Queue: Don Garrett <[email protected]>
1 file changed