From a68a00fe28b6b39c0c166ec8d95e3bd367e8cf07 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 10 Nov 2021 15:42:17 +0100 Subject: [PATCH] DOC: management: edit the "show proc" example to show the current output The "show proc" output changed and it's time to update the example. The output does not display the relative PID anymore since the nbproc keyword disappeared, and it displays the number of failed reloads since the last successful one. --- doc/management.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/doc/management.txt b/doc/management.txt index c85ae1fee..146ae2e22 100644 --- a/doc/management.txt +++ b/doc/management.txt @@ -3565,19 +3565,21 @@ Example: # haproxy -Ws -S /tmp/master-socket,uid,1000,gid,1000,mode,600 -f test1.cfg # haproxy -W -S /tmp/master-socket,level,user -f test1.cfg -The master CLI introduces a new 'show proc' command to surpervise the +The master CLI introduces a 'show proc' command to surpervise the processes: Example: $ echo 'show proc' | socat /var/run/haproxy-master.sock - - # - 1162 master 0 5 0d00h02m07s 2.0-dev7-0124c9-7 + # + 1162 master 5 [failed: 0] 0d00h02m07s 2.5-dev13 # workers - 1271 worker 1 0 0d00h00m00s 2.0-dev7-0124c9-7 - 1272 worker 2 0 0d00h00m00s 2.0-dev7-0124c9-7 + 1271 worker 1 0d00h00m00s 2.5-dev13 # old workers - 1233 worker [was: 1] 3 0d00h00m43s 2.0-dev3-6019f6-289 + 1233 worker 3 0d00h00m43s 2.0-dev3-6019f6-289 + # programs + 1244 foo 0 0d00h00m00s - + 1255 bar 0 0d00h00m00s - In this example, the master has been reloaded 5 times but one of the old