Merge "init: Combine the CheckShutdown() and set_do_shutdown() methods"