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) --- ChangeLog | 1 + 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 ++++ 7 files changed, 13 insertions(+) create mode 100755 examples/sync/nack/script_fault.sh create mode 100755 examples/sync/persistent/script_fault.sh diff --git a/ChangeLog b/ChangeLog index fb2d21b..370308c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,7 @@ o introduce 'Replicate' clause to explicitely set states to be replicated o kill cache feature abuse: introduce nicer cache hooks for sync algorithms o fix oversized buffer allocated in the stack in the cache functions o add support to dump internal/external cache in XML format '-x' +o add script for keepalived fault state (eg. unplugged cable/link down) = conntrack = o port conntrack to the new libnetfilter_conntrack API 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