mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 05:54:39 +00:00
DOC: management: describe the new reload command behavior
The master CLI command now allows to do a synchronous reload with a status.
This commit is contained in:
parent
0a0512f76d
commit
70c5ad4425
@ -3886,11 +3886,24 @@ reload
|
||||
does the same as a `kill -USR2` on the master process, provided that the user
|
||||
has at least "operator" or "admin" privileges.
|
||||
|
||||
This command allows you to perform a synchronous reload, the command will
|
||||
return a reload status, once the reload was performed. Be careful with the
|
||||
timeout if a tool is used to parse it, it is only returned once the
|
||||
configuration is parsed and the new worker is forked.
|
||||
|
||||
Example:
|
||||
|
||||
$ echo "reload" | socat /var/run/haproxy-master.sock stdin
|
||||
Loading success.
|
||||
|
||||
Note that a reload will close the connection to the master CLI.
|
||||
$ echo "reload" | socat /var/run/haproxy-master.sock stdin
|
||||
Loading failure!
|
||||
|
||||
The reload command is the last executed on the master CLI, every other
|
||||
command after it are ignored. Once the reload command returns its status, it
|
||||
will close the connection to the CLI.
|
||||
|
||||
Note that a reload will close all connections to the master CLI.
|
||||
|
||||
show proc
|
||||
The master CLI introduces a 'show proc' command to surpervise the
|
||||
|
Loading…
Reference in New Issue
Block a user