From: Björn R. <br...@us...> - 2009-10-26 16:23:43
|
Update of /cvsroot/devil-linux/build/scripts In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7420/scripts Added Files: keepalived Log Message: add keepalived --- NEW FILE: keepalived --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/keepalived,v $ # $Revision: 1.1 $ # $Date: 2009/10/26 16:23:32 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: keepalived # Required-Start: $basebuildtools $libs popt # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: keepalived is a userspace daemon for LVS cluster nodes healthchecks and LVS directors failover ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=KEEPALIVED case $1 in build ) if [ "$CONFIG_KEEPALIVED" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || exit 1 make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_KEEPALIVED" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 mkdir -p $TMPDIR/etc || exit 1 make install DESTDIR=$TMPDIR || exit 1 copy_docs $TMPDIR copy_files $TMPDIR/usr $CDDIR || exit 1 copy_files $TMPDIR/etc/keepalived $ETCDIR/keepalived/ || exit 1 mv $ETCDIR/keepalived/keepalived.conf $ETCDIR/keepalived/keepalived.conf.sample || exit 1 cp $MYDIR/scripts/keepalived $ETCDIR/etc/init.d || exit 1 rm -rf $TMPDIR || exit 1 echo "# Start KEEPALIVED?" >> $CONFIGFILE echo "START_KEEPALIVED=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_KEEPALIVED=\"keepalived is a userspace daemon for LVS cluster nodes healthchecks and LVS directors failover\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |