MINOR: init: server state loaded from file

With this patch, HAProxy reads the content of server state file and
update state of servers accordingly.
This commit is contained in:
Baptiste Assmann 2015-08-14 16:20:52 +02:00 committed by Willy Tarreau
parent 01c6cc3670
commit fecd2b53af

View File

@ -800,6 +800,9 @@ void init(int argc, char **argv)
exit(2); exit(2);
} }
/* Apply server states */
apply_server_state();
global_listener_queue_task = task_new(); global_listener_queue_task = task_new();
if (!global_listener_queue_task) { if (!global_listener_queue_task) {
Alert("Out of memory when initializing global task\n"); Alert("Out of memory when initializing global task\n");