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