diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-21 14:00:25 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-21 14:00:25 +0100 |
commit | be13a23d3b3ae4ccc724a23308825a24c11fda2d (patch) | |
tree | 8daa1ce6192ce2503c5c3a687f0a87ec46f58b81 /doc | |
parent | e83250c0381bbff232011b67c87a5b9f3a0de09a (diff) | |
download | conntrack-tools-be13a23d3b3ae4ccc724a23308825a24c11fda2d.tar.gz conntrack-tools-be13a23d3b3ae4ccc724a23308825a24c11fda2d.zip |
doc: revert primary-backup-2.6.29-and-higher.sh script
This patch reverts primary-backup-2.6.29-and-higher.sh. This script
is not safe for production enviroments until the commit phase
guarantees that the state-change propagation over netlink is
reliable. This script should be ready for 2.6.30 if the appropriate
kernel patches go into mainline in time.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/sync/primary-backup-2.6.29-and-higher.sh | 109 | ||||
-rwxr-xr-x | doc/sync/primary-backup.sh | 2 |
2 files changed, 0 insertions, 111 deletions
diff --git a/doc/sync/primary-backup-2.6.29-and-higher.sh b/doc/sync/primary-backup-2.6.29-and-higher.sh deleted file mode 100755 index 3236c24..0000000 --- a/doc/sync/primary-backup-2.6.29-and-higher.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/bin/sh -# -# (C) 2008-2009 by Pablo Neira Ayuso <pablo@netfilter.org> -# -# This software may be used and distributed according to the terms -# of the GNU General Public License, incorporated herein by reference. -# -# 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. -# -# Do not forget to include the required modifications to your keepalived.conf -# file to invoke this script during keepalived's state transitions. -# -# Contributions to improve this script are welcome :). -# - -CONNTRACKD_BIN=/usr/sbin/conntrackd -CONNTRACKD_LOCK=/var/lock/conntrack.lock -CONNTRACKD_CONFIG=/etc/conntrackd/conntrackd.conf - -case "$1" in - primary) - # - # commit the external cache into the kernel table - # - $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -c - if [ $? -eq 1 ] - then - logger "ERROR: failed to invoke conntrackd -c" - fi - - # - # flush external cache - # - $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -f external - if [ $? -eq 1 ] - then - logger "ERROR: failed to invoke conntrackd -f external" - fi - ;; - - backup) - # - # is conntrackd running? request some statistics to check it - # - $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -s - if [ $? -eq 1 ] - then - # - # something's wrong, do we have a lock file? - # - if [ -f $CONNTRACKD_LOCK ] - then - logger "WARNING: conntrackd was not cleanly stopped." - logger "If you suspect that it has crashed:" - logger "1) Enable coredumps" - logger "2) Try to reproduce the problem" - logger "3) Post the coredump to netfilter-devel@vger.kernel.org" - rm -f $CONNTRACKD_LOCK - fi - $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -d - if [ $? -eq 1 ] - then - logger "ERROR: cannot launch conntrackd" - exit 1 - fi - fi - # - # shorten kernel conntrack timers to remove the zombie entries. - # - $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -t - if [ $? -eq 1 ] - then - logger "ERROR: failed to invoke conntrackd -t" - fi - - # - # request resynchronization with master firewall replica (if any) - # Note: this does nothing in the alarm approach. - # - $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -n - if [ $? -eq 1 ] - then - logger "ERROR: failed to invoke conntrackd -n" - fi - ;; - fault) - # - # shorten kernel conntrack timers to remove the zombie entries. - # - $CONNTRACKD_BIN -C $CONNTRACKD_CONFIG -t - if [ $? -eq 1 ] - then - logger "ERROR: failed to invoke conntrackd -t" - fi - ;; - *) - logger "ERROR: unknown state transition" - echo "Usage: primary-backup.sh {primary|backup|fault}" - exit 1 - ;; -esac - -exit 0 diff --git a/doc/sync/primary-backup.sh b/doc/sync/primary-backup.sh index ae6546b..34c1cfa 100755 --- a/doc/sync/primary-backup.sh +++ b/doc/sync/primary-backup.sh @@ -7,8 +7,6 @@ # # 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. |