mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-06 03:59:36 +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
|
does the same as a `kill -USR2` on the master process, provided that the user
|
||||||
has at least "operator" or "admin" privileges.
|
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:
|
Example:
|
||||||
|
|
||||||
$ echo "reload" | socat /var/run/haproxy-master.sock stdin
|
$ 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
|
show proc
|
||||||
The master CLI introduces a 'show proc' command to surpervise the
|
The master CLI introduces a 'show proc' command to surpervise the
|
||||||
|
Loading…
Reference in New Issue
Block a user