manager: fix handling of failure in initialization

We would warn and continue after failure in manager_startup, but there's no
way we can continue. We must fail.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-02-11 18:21:06 -05:00
parent 3a7928957b
commit 58f88d929f
+3 -1
View File
@@ -1830,8 +1830,10 @@ int main(int argc, char *argv[]) {
before_startup = now(CLOCK_MONOTONIC);
r = manager_startup(m, arg_serialization, fds);
if (r < 0)
if (r < 0) {
log_error_errno(r, "Failed to fully start up daemon: %m");
goto finish;
}
/* This will close all file descriptors that were opened, but
* not claimed by any unit. */