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
Commit-Ready: Mike Frysinger <email@example.com>
Tested-by: Mike Frysinger <firstname.lastname@example.org>
Reviewed-by: Mattias Nissler <email@example.com>
1 file changed