commit | b7e03e82b89a30b09fea88eaf2a5638df1017cf6 | [log] [tgz] |
---|---|---|
author | Bertrand SIMONNET <bsimonnet@google.com> | Fri Dec 18 11:39:59 2015 -0800 |
committer | Bertrand SIMONNET <bsimonnet@google.com> | Fri Jan 08 11:12:15 2016 -0800 |
tree | 4a82e891ea154a1ac42c736e120a1b8e985c5a06 | |
parent | a649a7df15617e1e54cc89c2f682a5e6472bf304 [diff] |
init: Allows shutting down cleanly. When ro.build.shutdown_timeout is set, init will send a SIGTERM signal to all services on reboot. The normal shutdown process will continue once all services have exited or after the shutdown timeout (ro.build.shutdown_timeout). If ro.build.shutdown_timeout is not set, we assume a 0s timeout. Bug: 26216447 Test: manual: Ask to reboot. All services exit cleanly. Change-Id: If921f6e8d87211e500ac9fa86f3e1eabe02d18cf