]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: init: server state loaded from file
authorBaptiste Assmann <bedis9@gmail.com>
Fri, 14 Aug 2015 14:20:52 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Sep 2015 15:05:28 +0000 (17:05 +0200)
With this patch, HAProxy reads the content of server state file and
update state of servers accordingly.

src/haproxy.c

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