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:
@ -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);
|
||||
|
Reference in New Issue
Block a user