File: README.rst

package info (click to toggle)
haproxy-cmd 0.0.7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 80 kB
  • sloc: python: 250; sh: 132; makefile: 14
file content (12 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
This package contains a helper to send commands through the haproxy socket,
so it is possible to maintain servers part of a cluster by draining,
enabling and stopping servers part of a backend.

hapc
needs an admin socket to be able to use it. So it is needed to add this
to /etc/haproxy/haproxy.cfg:

global
        stats socket /var/lib/haproxy/admin.sock mode 600 level admin

Then hapc will connect to it.