From 34d1c62cd414a6d3321d9a51fc6e1d61f36da2f0 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Tue, 15 May 2007 11:53:07 +0000 Subject: add script for keepalived fault state (eg. unplugged cable/link down) --- examples/sync/nack/node1/keepalived.conf | 1 + examples/sync/nack/node2/keepalived.conf | 1 + examples/sync/nack/script_fault.sh | 4 ++++ examples/sync/persistent/node1/keepalived.conf | 1 + examples/sync/persistent/node2/keepalived.conf | 1 + examples/sync/persistent/script_fault.sh | 4 ++++ 6 files changed, 12 insertions(+) create mode 100755 examples/sync/nack/script_fault.sh create mode 100755 examples/sync/persistent/script_fault.sh (limited to 'examples') diff --git a/examples/sync/nack/node1/keepalived.conf b/examples/sync/nack/node1/keepalived.conf index 41aa35b..f272a02 100644 --- a/examples/sync/nack/node1/keepalived.conf +++ b/examples/sync/nack/node1/keepalived.conf @@ -5,6 +5,7 @@ vrrp_sync_group G1 { # must be before vrrp_instance declaration } notify_master /etc/conntrackd/script_master.sh notify_backup /etc/conntrackd/script_backup.sh + notify_fault /etc/conntrackd/script_fault.sh } vrrp_instance VI_1 { diff --git a/examples/sync/nack/node2/keepalived.conf b/examples/sync/nack/node2/keepalived.conf index 41aa35b..f272a02 100644 --- a/examples/sync/nack/node2/keepalived.conf +++ b/examples/sync/nack/node2/keepalived.conf @@ -5,6 +5,7 @@ vrrp_sync_group G1 { # must be before vrrp_instance declaration } notify_master /etc/conntrackd/script_master.sh notify_backup /etc/conntrackd/script_backup.sh + notify_fault /etc/conntrackd/script_fault.sh } vrrp_instance VI_1 { diff --git a/examples/sync/nack/script_fault.sh b/examples/sync/nack/script_fault.sh new file mode 100755 index 0000000..68f1534 --- /dev/null +++ b/examples/sync/nack/script_fault.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +/usr/sbin/conntrackd -f +/usr/sbin/conntrackd -F diff --git a/examples/sync/persistent/node1/keepalived.conf b/examples/sync/persistent/node1/keepalived.conf index 41aa35b..f272a02 100644 --- a/examples/sync/persistent/node1/keepalived.conf +++ b/examples/sync/persistent/node1/keepalived.conf @@ -5,6 +5,7 @@ vrrp_sync_group G1 { # must be before vrrp_instance declaration } notify_master /etc/conntrackd/script_master.sh notify_backup /etc/conntrackd/script_backup.sh + notify_fault /etc/conntrackd/script_fault.sh } vrrp_instance VI_1 { diff --git a/examples/sync/persistent/node2/keepalived.conf b/examples/sync/persistent/node2/keepalived.conf index 41aa35b..f272a02 100644 --- a/examples/sync/persistent/node2/keepalived.conf +++ b/examples/sync/persistent/node2/keepalived.conf @@ -5,6 +5,7 @@ vrrp_sync_group G1 { # must be before vrrp_instance declaration } notify_master /etc/conntrackd/script_master.sh notify_backup /etc/conntrackd/script_backup.sh + notify_fault /etc/conntrackd/script_fault.sh } vrrp_instance VI_1 { diff --git a/examples/sync/persistent/script_fault.sh b/examples/sync/persistent/script_fault.sh new file mode 100755 index 0000000..68f1534 --- /dev/null +++ b/examples/sync/persistent/script_fault.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +/usr/sbin/conntrackd -f +/usr/sbin/conntrackd -F -- cgit v1.2.3