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 /examples | |
parent | f5123f2db878808a7431b8cc25c8eaa7813ed77f (diff) | |
download | conntrack-tools-34d1c62cd414a6d3321d9a51fc6e1d61f36da2f0.tar.gz conntrack-tools-34d1c62cd414a6d3321d9a51fc6e1d61f36da2f0.zip |
add script for keepalived fault state (eg. unplugged cable/link down)
Diffstat (limited to 'examples')
-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 |
6 files changed, 12 insertions, 0 deletions
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 |