commit | 6f1d553547790dd42d92c03d37543fa462eb6d89 | [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 | 9566ebf1aa846021ee1255bd286cc3484cce81a8 [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