MXS-1929: Persist the router parameter

The router parameter was not persisted for services.
This commit is contained in:
Markus Mäkelä 2018-07-18 19:05:58 +03:00
parent f10eab4406
commit 560157081c
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -2218,6 +2218,7 @@ static bool create_service_config(const SERVICE *service, const char *filename)
*/
dprintf(file, "[%s]\n", service->name);
dprintf(file, "%s=service\n", CN_TYPE);
dprintf(file, "%s=%s\n", CN_ROUTER, service->routerModule);
dprintf(file, "%s=%s\n", CN_USER, service->credentials.name);
dprintf(file, "%s=%s\n", CN_PASSWORD, service->credentials.authdata);
dprintf(file, "%s=%s\n", CN_ENABLE_ROOT_USER, service->enable_root ? "true" : "false");