MXS-1929: Allow startup with no services

MaxScale can now be started with an empty configuration file and services
can be created at runtime. Filters cannot yet be created at runtime so
complete runtime creation of configurations is not yet possible.
This commit is contained in:
Markus Mäkelä
2018-07-23 13:48:19 +03:00
parent 106b1d46d5
commit a50fce0c65
3 changed files with 4 additions and 3 deletions

View File

@ -2094,7 +2094,7 @@ int main(int argc, char **argv)
/** Start the services that were created above */
n_services = service_launch_all();
if (n_services == 0)
if (n_services == -1)
{
const char* logerr = "Failed to start all MaxScale services. Exiting.";
print_log_n_stderr(true, true, logerr, logerr, 0);