init: halt service if initial check fails

If the pre-startup phase fails, then there's a problem with the watchdog.
Stop upstart from trying to respawn us all the time in that case.  This
fixes the restart storm/spam seen when we build images for real devices,
but then boot them in a VM where there is no watchdog service.

TEST=startup still works on a real device
TEST=startup halts in a VM

Change-Id: Icbd22f04dd434ad1e1fe8ae42a2385232b419be0
Commit-Ready: Mike Frysinger <>
Tested-by: Mike Frysinger <>
Reviewed-by: Mattias Nissler <>
1 file changed