From 1606369707325e2f68ffe225917d7ea637ddb9de Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 15 Feb 2009 18:47:50 +0100 Subject: doc: add bulk update to primary-script.sh script This patch updates the script to remark the fact that it should be used with Linux kernel < 2.6.29. Moreover, it adds a bulk-update command after the commit in the primary path to avoid any race condition (the backup may request a resync while this primary is still committing the entries with an empty internal cache). This is hackish, but I think that this is the best way to do this for systems running a Linux kernel < 2.6.29. Signed-off-by: Pablo Neira Ayuso --- doc/sync/primary-backup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/sync/primary-backup.sh b/doc/sync/primary-backup.sh index e5331e3..ae6546b 100755 --- a/doc/sync/primary-backup.sh +++ b/doc/sync/primary-backup.sh @@ -7,6 +7,8 @@ # # Description: # +# Use this script is you use a Linux kernel < 2.6.29. +# # This is the script for primary-backup setups for keepalived # (http://www.keepalived.org). You may adapt it to make it work with other # high-availability managers. @@ -49,6 +51,15 @@ case "$1" in then logger "ERROR: failed to invoke conntrackd -R" fi + + # + # send a bulk update to backups + # + $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -B + if [ $? -eq 1 ] + then + logger "ERROR: failed to invoke conntrackd -B" + fi ;; backup) # -- cgit v1.2.3