powerd_setuid_helper should use initctl to go to runlevel 6 to reboot |
||
Issue descriptionpowerd_setuid_helper currently runs "initctl emit --no-wait runlevel RUNLEVEL=0 SHUTDOWN_REASON=foo" to shut the system down, but "shutdown -r now" to reboot it. I don't think there's any particular reason for the difference; it's just what it's always done. This has the downside of leaving SHUTDOWN_REASON unset when rebooting, though, resulting in the pre-shutdown job logging a message like this: 2018-01-30T18:17:24.715632-08:00 NOTICE pre-shutdown[7514]: Shutting down for reboot: unknown-reason I think I can make powerd_setuid_helper instead run initctl to go to runlevel 6 in order to reboot. Then we can pass SHUTDOWN_REASON.
,
Feb 2 2018
,
Mar 14 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2b1f5f9e57a47ae4632ff88ed11038b366d551dd commit 2b1f5f9e57a47ae4632ff88ed11038b366d551dd Author: Daniel Erat <derat@chromium.org> Date: Wed Mar 14 23:13:28 2018 metrics: Add ShutdownReason value to enums.xml. Document the "Other request to powerd" reason in the Chrome OS ShutdownReason enum in enums.xml. This enum is defined in powerd, i.e. outside of the Chromium repository. Bug: 807509 Change-Id: I7a07fba2770480c207f711580ddd9287ba71bfb3 Reviewed-on: https://chromium-review.googlesource.com/963486 Commit-Queue: Dan Erat <derat@chromium.org> Reviewed-by: Michael Giuffrida <michaelpg@chromium.org> Cr-Commit-Position: refs/heads/master@{#543233} [modify] https://crrev.com/2b1f5f9e57a47ae4632ff88ed11038b366d551dd/tools/metrics/histograms/enums.xml |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Feb 2 2018