diff options
author | root | 2006-04-24 09:03:08 -0500 |
---|---|---|
committer | root | 2006-04-24 09:03:08 -0500 |
commit | 84d8b510ac289af0a43bfa9e110844af27a90196 (patch) | |
tree | d7093929b954dd2f71114bff270755e18f737eb1 /cluster/keepalived |
initial commit from stable 0.3
Diffstat (limited to 'cluster/keepalived')
-rwxr-xr-x | cluster/keepalived/BUILD | 44 | ||||
-rwxr-xr-x | cluster/keepalived/CONFIGURE | 6 | ||||
-rwxr-xr-x | cluster/keepalived/DEPENDS | 2 | ||||
-rwxr-xr-x | cluster/keepalived/DETAILS | 22 | ||||
-rwxr-xr-x | cluster/keepalived/FINAL | 1 | ||||
-rw-r--r-- | cluster/keepalived/HISTORY | 19 | ||||
-rwxr-xr-x | cluster/keepalived/INSTALL | 7 | ||||
-rw-r--r-- | cluster/keepalived/init.d/keepalived | 40 |
8 files changed, 141 insertions, 0 deletions
diff --git a/cluster/keepalived/BUILD b/cluster/keepalived/BUILD new file mode 100755 index 0000000000..d068627ef7 --- /dev/null +++ b/cluster/keepalived/BUILD @@ -0,0 +1,44 @@ +if [ "$SYNC" == "y" ]; then + MYCONF="--disable-syncd " && + message "${MESSAGE_COLOR}Disabled lvs syncd${DEFAULT_COLOR}" +fi && +if [ "$LVS" == "y" ]; +then + MYCONF="$MYCONF --disable-lvs " && + message "${MESSAGE_COLOR}Disable lvs framework ${DEFAULT_COLOR}" +fi && +if [ "$VRRP" == "y" ]; +then + MYCONF="$MYCONF --disable-vrrp " + message "${MESSAGE_COLOR}Not using VRRP ${DEFAULT_COLOR}" +fi && +if [ "$KDEBUG" == "y" ]; +then + MYCONF="$MYCONF --enable-debug " + message "${MESSAGE_COLOR}Enabling debug ${DEFAULT_COLOR}" +fi && +if [ "$PROF" == "y" ]; +then + MYCONF="$MYCONF --enable-profile " + message "${MESSAGE_COLOR}Using profiling ${DEFAULT_COLOR}" +fi && + +./configure \ + --prefix=${INSTALL_ROOT}/usr \ + --bindir=${INSTALL_ROOT}/usr/bin \ + --sbindir=${INSTALL_ROOT}/usr/sbin \ + --datadir=${INSTALL_ROOT}/usr/share \ + --sysconfdir=${INSTALL_ROOT}/etc \ + --libdir=${INSTALL_ROOT}/usr/lib \ + --includedir=${INSTALL_ROOT}/usr/include \ + --infodir=${INSTALL_ROOT}/usr/info \ + --mandir=${INSTALL_ROOT}/usr/share/man \ + --libexecdir=${INSTALL_ROOT}/usr/libexec \ + --datadir=${INSTALL_ROOT}/usr/share \ + --localstatedir=${INSTALL_ROOT}/var/lib/keepalived \ + --sharedstatedir=${INSTALL_ROOT}/usr/share/keepalived \ + $OPTS \ + $MYCONF && + + +make diff --git a/cluster/keepalived/CONFIGURE b/cluster/keepalived/CONFIGURE new file mode 100755 index 0000000000..d132ec5e4c --- /dev/null +++ b/cluster/keepalived/CONFIGURE @@ -0,0 +1,6 @@ +config_query SYNC "Disable lvs syncd?" y +config_query LVS "Disable lvs support?" y +config_query VRRP "Disable vrrp support?" y +config_query KDEBUG "Enable debug?" y +config_query PROF "Enable profiling" y + diff --git a/cluster/keepalived/DEPENDS b/cluster/keepalived/DEPENDS new file mode 100755 index 0000000000..2481266fa0 --- /dev/null +++ b/cluster/keepalived/DEPENDS @@ -0,0 +1,2 @@ +depends popt && +depends openssl
\ No newline at end of file diff --git a/cluster/keepalived/DETAILS b/cluster/keepalived/DETAILS new file mode 100755 index 0000000000..a08c9375a4 --- /dev/null +++ b/cluster/keepalived/DETAILS @@ -0,0 +1,22 @@ + SPELL=keepalived + VERSION=1.1.11 + SOURCE=$SPELL-$VERSION.tar.gz +SOURCE_DIRECTORY=$SPELL-$VERSION + SOURCE_URL[0]=http://www.keepalived.org/software/$SOURCE + WEB_SITE=http://www.keepalived.org + MD5[0]=64bd39009d333b33b276d1102d17aaf1 + LICENSE[0]=GPL + ENTERED=20041112 + UPDATED=20041122 + BUILD_API=2 + SHORT="Keepalived for LVS aims to add a strong and robust keepalive." +cat << EOF +Keepalived for LVS aims to add a strong and robust keepalive facility to +the Linux Virtual Server project. This project is written in C with +multilayer TCP/IP stack checks. It implements a framework based on three +family checks: Layer3, Layer4, and Layer5. This framework gives the daemon +the ability of checking a LVS server pool states.When one of the servers in +the LVS server pool is down, keepalived informs the Linux kernel via a +setsockopt call to remove this server entry from the LVS topology. In +addition, it implements a VRRPv2 stack to handle director failover. +EOF diff --git a/cluster/keepalived/FINAL b/cluster/keepalived/FINAL new file mode 100755 index 0000000000..1c45309b14 --- /dev/null +++ b/cluster/keepalived/FINAL @@ -0,0 +1 @@ +rm ${INSTALL_ROOT}/etc/init.d/keepalived
\ No newline at end of file diff --git a/cluster/keepalived/HISTORY b/cluster/keepalived/HISTORY new file mode 100644 index 0000000000..765254a0b5 --- /dev/null +++ b/cluster/keepalived/HISTORY @@ -0,0 +1,19 @@ +2005-07-14 Maurizio Boriani <baux@sourcemage.org> + * DETAILS: Bump to release 1.1.11. + +2005-02-15 Maurizio Boriani <baux@sourcemage.org> + * DETAILS: Upgrade to release 1.1.10. + +2005-02-07 Maurizio Boriani <baux@sourcemage.org> + * DETAILS: Upgrade to release 1.1.9. + * CONFIGURE: Reanme DEBUG var to KDEBUG avoiding clash. + * BUILD: Likewise. + +2004-11-22 Maurizio Boriani <baux@member.fsf.org> + * FINAL: New. Remove a wrong installed init script. + * init.d/keepalived: New. Init script compliant so sm init sys. + * DEPENDS: Added deps. + +2004-11-12 Maurizio Boriani <baux@member.fsf.org> + * BUILD, DETAILS, CONFIGURE, HISTORY, INSTALL: created the spell. + diff --git a/cluster/keepalived/INSTALL b/cluster/keepalived/INSTALL new file mode 100755 index 0000000000..775f9d2a9b --- /dev/null +++ b/cluster/keepalived/INSTALL @@ -0,0 +1,7 @@ +make install && + +if ! [ -e ${INSTALL_ROOT}/var/lock/subsys ]; +then + mkdir ${INSTALL_ROOT}/var/lock/subsys +fi + diff --git a/cluster/keepalived/init.d/keepalived b/cluster/keepalived/init.d/keepalived new file mode 100644 index 0000000000..dbd9ba4911 --- /dev/null +++ b/cluster/keepalived/init.d/keepalived @@ -0,0 +1,40 @@ +#!/bin/bash + + +RUNLEVEL=3 +PID_FILE="/var/run/keepalived.pid" +PROGRAM="/usr/sbin/keepalived" + + +. /etc/init.d/smgl_init +. /etc/sysconfig/init + + +start () +{ + echo "Starting Keepalived" + keepalived -D + touch /var/lock/subsys/keepalived + evaluate_retval +} + +stop () +{ + echo "Shutting down Keepalived" + PID=`cat $PID_FILE` + kill $PID + rm -rf /var/lock/subsys/keepalived + evaluate_retval +} + +restart() +{ + run_func stop + sleep 1 + run_func start +} + +reload() +{ + run_func restart +}
\ No newline at end of file |