diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-05-15 11:53:07 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-05-15 11:53:07 +0000 |
commit | 34d1c62cd414a6d3321d9a51fc6e1d61f36da2f0 (patch) | |
tree | 543552c6f8ec8e280670f2bae1987da0e5420d15 | |
parent | f5123f2db878808a7431b8cc25c8eaa7813ed77f (diff) | |
download | conntrack-tools-34d1c62cd414a6d3321d9a51fc6e1d61f36da2f0.tar.gz conntrack-tools-34d1c62cd414a6d3321d9a51fc6e1d61f36da2f0.zip |
add script for keepalived fault state (eg. unplugged cable/link down)
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | examples/sync/nack/node1/keepalived.conf | 1 | ||||
-rw-r--r-- | examples/sync/nack/node2/keepalived.conf | 1 | ||||
-rwxr-xr-x | examples/sync/nack/script_fault.sh | 4 | ||||
-rw-r--r-- | examples/sync/persistent/node1/keepalived.conf | 1 | ||||
-rw-r--r-- | examples/sync/persistent/node2/keepalived.conf | 1 | ||||
-rwxr-xr-x | examples/sync/persistent/script_fault.sh | 4 |
7 files changed, 13 insertions, 0 deletions
@@ -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 |