haproxy/certmonger: use container_cli to trigger HUP signal
We were using pkill, which would fail due to SELinux. Using the container cli would be a better option. It's also more portable. Change-Id: I6bf92bc1e74797d9132ae595af8929e67d439f43 Closes-Bug: #1821149
This commit is contained in:
@@ -43,7 +43,7 @@ if [ "$ACTION" == "reload" ]; then
|
|||||||
$container_cli exec "$haproxy_container_name" chown haproxy:haproxy "$service_pem"
|
$container_cli exec "$haproxy_container_name" chown haproxy:haproxy "$service_pem"
|
||||||
|
|
||||||
# Trigger a reload for HAProxy to read the new certificates
|
# Trigger a reload for HAProxy to read the new certificates
|
||||||
pkill -f -HUP haproxy-systemd-wrapper
|
$container_cli kill --signal HUP "$haproxy_container_name"
|
||||||
elif [ "$ACTION" == "restart" ]; then
|
elif [ "$ACTION" == "restart" ]; then
|
||||||
# Copying the certificate and permissions will be handled by kolla's start
|
# Copying the certificate and permissions will be handled by kolla's start
|
||||||
# script.
|
# script.
|
||||||
|
|||||||
Reference in New Issue
Block a user