TrendRadars > Technology > Develop > keepalived Delayed start of track_script
keepalived Delayed start of track_script
keepalived Delayed start of track_script,I'm trying to add HA capabilities to our gateway to reach the IPv6 Internet by tunneling over existing IPv4 connection. I've been tweaking keepalived configuration for some time now and reached a p...

keepalived Delayed start of track_script

I’m trying to add HA capabilities to our gateway to reach the IPv6 Internet by tunneling over existing IPv4 connection.

I’ve been tweaking keepalived configuration for some time now and reached a point I haven’t been able to pass.

Found here someone who has exactly the same problem I have. The track_script is executed before the tunnel is up, so the master node goes into a FAULT state.

Has anybody found a way to delay the start of the first tarck_script execution?

Any other ideas?

Quotation:

hi,i need advice how to start keepalived cluster when i want use track_script which monitor process which keepalived startsi.e.

the problem is that: when keepalived starts, it immediately run track_script before httpd starts – so it falls to FAULT state

any idea howto "wait/delay" first track_script until process from notify starts?

i found

init_fail # assume script initially is in failed state

but i need the opposite. assume script initialy in ok state

keepalived.conf snippetvrrp_script httpd_check {script "/usr/local/bin/check_httpd.sh"interval 1timeout 5rise 3fall 3}

vrrp_sync_group VG1 {group {privatepublic}

track_script {httpd_check}

notify     "/usr/local/bin/genericnotify.sh"

}

Thanks.