]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: management: Correct example reload command in the document
authorvarnav <varnavruz@gmail.com>
Mon, 10 May 2021 14:29:57 +0000 (10:29 -0400)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 May 2021 18:35:41 +0000 (20:35 +0200)
Current example is:

  `echo "reload" | socat /var/run/haproxy-master.sock`

it will cause socat error:

  `exactly 2 addresses required (there are 1); use option "-h" for help`

Correct working command is:

  `echo "reload" | socat /var/run/haproxy-master.sock stdin`

doc/management.txt

index 3770c89d676a094c50a07986c85fc1d615b6fc64..a1c5b4c9050fcea3cc2edda9dfabf6f4b7811cf9 100644 (file)
@@ -3296,7 +3296,7 @@ has at least "operator" or "admin" privileges.
 
 Example:
 
-  $ echo "reload" | socat /var/run/haproxy-master.sock
+  $ echo "reload" | socat /var/run/haproxy-master.sock stdin
 
 Note that a reload will close the connection to the master CLI.