From c1c7a3fb02bd42444cd8571deae9393a37c52ad3 Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Thu, 26 Sep 2013 10:38:31 +0200 Subject: [PATCH] Additional check for service starts --- server/core/gateway.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/core/gateway.c b/server/core/gateway.c index 80cfa6ff5..de6ae8d99 100644 --- a/server/core/gateway.c +++ b/server/core/gateway.c @@ -419,7 +419,12 @@ fail_accept_errno = 0; * Start the services that were created above */ n_services = serviceStartAll(); - skygw_log_write(LOGFILE_MESSAGE, "Started modules succesfully."); + if (n_services == 0) + { + skygw_log_write(LOGFILE_ERROR, "Failed to start any services."); + exit(1); + } + skygw_log_write(LOGFILE_MESSAGE, "Started %d services succesfully.", n_services); /** * Start periodic log flusher thread.