keepalived: fix ambigiuos functions in hotplug.sh
authorFrancesco Benini <francy.benini@gmail.com>
Sat, 19 Oct 2024 23:19:23 +0000 (01:19 +0200)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Tue, 22 Oct 2024 13:46:27 +0000 (15:46 +0200)
commitac72a52fd90a7a0690965d2816d0bae9d7400449
treef9057b97312b1a53188b546e5e152ba2d5915e44
parentea092363d93ea74799a610d2ac2e6710ae0dd3e2
keepalived: fix ambigiuos functions in hotplug.sh

When "set_reload_if_sync" is not set in the hotplug script, the service
is not expected to reload. That is not true because even if not set, the
value is set to the default 1 (reload active) or equals the parameter
set when "keepalived_hotplug" is called.
The default behavior should be:
    - Reload if set_reload_if_sync is called
    - NOT reload if set_reload_if_sync is NOT called
A similar fix is ported to "set_update_target".

Signed-off-by: Francesco Benini <francy.benini@gmail.com>
net/keepalived/Makefile
net/keepalived/files/lib/functions/keepalived/hotplug.sh