f91b88078a
As keepalived, from v2.0.0, uses execev() instead of system() for running scripts, the haproxy_check and the pingable_check will fail when upgrading keepalived. Exporting the full command into scripts make them compatibale with newer version of keepalived. Change-Id: Iea7d4565910046149d64dd1b4d8ec7bebb6e9e2a Closes-bug: #1814064
17 lines
640 B
Bash
17 lines
640 B
Bash
#!/bin/sh
|
|
# Copyright 2019, Luis Domingues <domigues.luis@gmail.com>
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
/bin/ping -c $1 $2 1>&2
|