In order to avoid spam in journald, we just get the exit code and let
the checker output the error message.
Also, correct how we retrieve process in the healthcheck_port and _listen
functions.
"ss" doesn't allow to match some processes, like "neutron-l3-agent". We
therefore use the PID instead, provided by "pgrep".
The "-d" option of pgrep allow to prepare its output for the "grep -E",
preventing any need of a loop.
Reviewed: https:/ /review. opendev. org/713375 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=89d2393ea9f a977946ba34b6b9 b3b279f830b64c
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 89d2393ea9fa977 946ba34b6b9b3b2 79f830b64c
Author: Cédric Jeanneret <email address hidden>
Date: Wed Mar 27 08:58:24 2019 +0100
Silent file descriptor checks
In order to avoid spam in journald, we just get the exit code and let
the checker output the error message.
Also, correct how we retrieve process in the healthcheck_port and _listen
functions.
"ss" doesn't allow to match some processes, like "neutron-l3-agent". We
therefore use the PID instead, provided by "pgrep".
The "-d" option of pgrep allow to prepare its output for the "grep -E",
preventing any need of a loop.
Change-Id: I1555a9b79c954e 646fe9ae3527223 1c581cea03e c65514885aebdc2 dc4776d72d)
Closes-Bug: #1821782
Closes-Bug: #1821856
(cherry picked from commit 5312bf19c8f820a