init: log a metric when service startup fails

Today, if daisydog fails to start up properly, it gets logged as respawn
too fast failure by upstart, and that's it.  Add a metric to track this
better over all devices so we can see if we need to add more logic here
in the future.

BUG=chromium:673501
TEST=start up logged the metric
CQ-DEPEND=CL:418836

Change-Id: I5f317c408581b4892a1c3d61a58f2d79f66fa97a
Reviewed-on: https://chromium-review.googlesource.com/420363
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
1 file changed