Start housekeeper before services
The housekeeper needs to be initialized before services are started.
This commit is contained in:
@ -2142,6 +2142,15 @@ int main(int argc, char **argv)
|
||||
goto return_main;
|
||||
}
|
||||
|
||||
// Start the housekeeper thread
|
||||
if (!hkinit())
|
||||
{
|
||||
const char* logerr = "Failed to start housekeeper thread.";
|
||||
print_log_n_stderr(true, true, logerr, logerr, 0);
|
||||
rc = MAXSCALE_INTERNALERROR;
|
||||
goto return_main;
|
||||
}
|
||||
|
||||
/** Start all monitors */
|
||||
monitorStartAll();
|
||||
|
||||
@ -2176,17 +2185,6 @@ int main(int argc, char **argv)
|
||||
goto return_main;
|
||||
}
|
||||
|
||||
/*
|
||||
* Start the housekeeper thread
|
||||
*/
|
||||
if (!hkinit())
|
||||
{
|
||||
const char* logerr = "Failed to start housekeeper thread.";
|
||||
print_log_n_stderr(true, true, logerr, logerr, 0);
|
||||
rc = MAXSCALE_INTERNALERROR;
|
||||
goto return_main;
|
||||
}
|
||||
|
||||
/*<
|
||||
* Start the routing workers running in their own thread.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user