MXS-1929: Fix state of services created at runtime

If a service was created at runtime, it would be in the Allocated state
until it was stopped. The serviceStart function isn't necessary from a
functional point of view (a new service cannot have listeners that need
starting) but it does set the correct state and it's the "right" thing to
do.
This commit is contained in:
Markus Mäkelä
2018-08-22 22:50:44 +03:00
parent befb25a14a
commit fe124b79cc

View File

@ -1998,6 +1998,11 @@ Service* runtime_create_service_from_json(json_t* json)
runtime_destroy_service(rval);
rval = NULL;
}
else
{
// This function sets the service in the correct state
serviceStart(rval);
}
}
config_parameter_free(params);