summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 19:37:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 19:37:33 +0200
commiteea95300f89a13cefdbe4b0e28ddbf88779a4bbf (patch)
treec40698b73342baa0105bdc2efe40e9773518ce6a
parent16010f777b090b293a00072d8368e94418cc99f8 (diff)
downloadconntrack-tools-eea95300f89a13cefdbe4b0e28ddbf88779a4bbf.tar.gz
conntrack-tools-eea95300f89a13cefdbe4b0e28ddbf88779a4bbf.zip
fix missing updates in the example files
Fix missing updates in keepalived.conf and primary-backup.sh Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--doc/sync/keepalived.conf4
-rwxr-xr-xdoc/sync/primary-backup.sh3
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/sync/keepalived.conf b/doc/sync/keepalived.conf
index b7638a7..c9c8ac1 100644
--- a/doc/sync/keepalived.conf
+++ b/doc/sync/keepalived.conf
@@ -7,8 +7,8 @@ vrrp_sync_group G1 { # must be before vrrp_instance declaration
VI_1
VI_2
}
- notify_master /etc/conntrackd/primary-backup.sh
- notify_backup /etc/conntrackd/primary-backup.sh
+ notify_master "/etc/conntrackd/primary-backup.sh primary"
+ notify_backup "/etc/conntrackd/primary-backup.sh backup"
}
vrrp_instance VI_1 {
diff --git a/doc/sync/primary-backup.sh b/doc/sync/primary-backup.sh
index fddff3b..913ef7c 100755
--- a/doc/sync/primary-backup.sh
+++ b/doc/sync/primary-backup.sh
@@ -22,7 +22,7 @@ CONNTRACKD_LOCK=/var/lock/conntrack.lock
CONNTRACKD_CONFIG=/etc/conntrackd/conntrackd.conf
case "$1" in
- master)
+ primary)
#
# commit the external cache into the kernel table
#
@@ -86,6 +86,7 @@ case "$1" in
logger "ERROR: failed to invoke conntrackd -n"
;;
*)
+ logger "ERROR: unknown state transition"
echo "Usage: primary-backup.sh {primary|backup}"
exit 1
;;