Catch daemon startup failures in error_log

If the daemon is unable to construct its static state and begin the
network services, we need to catch the cause and drop it into the
error_log file manually.  Allowing an exception to carry up into
the caller will cause the error to print to stderr, which gerrit.sh
redirects to /dev/null.

Bug: issue 478
Change-Id: I4135f3776a77d9afb32b411640d6f507a1ed4def
Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed