blob: 941b4affd2d223d5dfbfb7d24779540c9d579de5 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
set -e
echo "show stat" | socat STDIO UNIX-CONNECT:/run/haproxy/admin.sock | grep "^#"
echo "show info" | socat STDIO UNIX-CONNECT:/run/haproxy/admin.sock | grep "^Version:"
|