20 lines
394 B
Django/Jinja
20 lines
394 B
Django/Jinja
#!/bin/bash
|
|
#
|
|
# echo $1 $2 is in $3 state > /var/lib/keepalived/keepalive.state
|
|
#
|
|
umask 022
|
|
export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:$PATH"
|
|
TYPE=$1
|
|
NAME=$2
|
|
STATE=$3
|
|
RETVAL=0
|
|
|
|
{% if keepalived_notify_extra_params is defined %}
|
|
{{ keepalived_notify_extra_params }}
|
|
{% endif %}
|
|
|
|
echo "$TYPE $NAME is in $STATE state" > {{ keepalived_runtime_dir }}/keepalive.state
|
|
|
|
exit $RETVAL
|
|
|