Runtime API Kullanarak
root@server1:~$ echo "show map /etc/haproxy/maps/hosts.map" | socat stdio /var/run/haproxy/haproxy.sock
0x1605c10 static.example.com be_static
0x1605c50 www.example.com be_static
0x1605c90 example.com be_static
0x1605cd0 api.example.com be_apiroot@server1:~$ echo "del map /etc/haproxy/hosts.map static.example.com" | socat stdio /var/run/haproxy/haproxy.sockroot@server1:~$ echo "show map /etc/haproxy/maps/hosts.map" | socat stdio /var/run/haproxy/haproxy.sock | awk '{print $2" "$3}' > /etc/haproxy/maps/hosts.mapLast updated