Update to 1.1.17 and update init script all the way.
This commit is contained in:
parent
a0c562c698
commit
d5ea702077
@ -1 +1 @@
|
|||||||
keepalived-1.1.15.tar.gz
|
keepalived-1.1.17.tar.gz
|
||||||
|
117
keepalived.init
117
keepalived.init
@ -1,85 +1,110 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Startup script for the Keepalived daemon
|
# keepalived High Availability monitor built upon LVS and VRRP
|
||||||
# chkconfig: - 21 79
|
|
||||||
# description: HA monitor built upon LVS, VRRP and service pollers
|
|
||||||
# processname: keepalived
|
|
||||||
# config: /etc/keepalived/keepalived.conf
|
|
||||||
# config: /etc/sysconfig/keepalived
|
|
||||||
# pidfile: /var/run/keepalived.pid
|
|
||||||
#
|
#
|
||||||
|
# chkconfig: - 21 79
|
||||||
|
# description: Robust keepalive facility to the Linux Virtual Server project \
|
||||||
|
# with multilayer TCP/IP stack checks.
|
||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: keepalived
|
# Provides: keepalived
|
||||||
# Required-Start: $local_fs $network $named
|
# Required-Start: $local_fs $network $named $syslog
|
||||||
# Required-Stop: $local_fs $remote_fs $network
|
# Required-Stop: $local_fs $network $named $syslog
|
||||||
# Short-Description: HA monitor built upon LVS, VRRP and service pollers
|
# Should-Start: httpd
|
||||||
# Description: Robust keepalive facility to the Linux Virtual Server project
|
# Should-Stop: httpd
|
||||||
# with multilayer TCP/IP stack checks.
|
# Default-Start:
|
||||||
|
# Default-Stop: 0 1 2 3 4 5 6
|
||||||
|
# Short-Description: High Availability monitor built upon LVS and VRRP
|
||||||
|
# Description: Robust keepalive facility to the Linux Virtual Server
|
||||||
|
# project with multilayer TCP/IP stack checks.
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
# Source function library
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
# Source configuration file (we set KEEPALIVED_OPTIONS there)
|
exec="/usr/sbin/keepalived"
|
||||||
. /etc/sysconfig/keepalived
|
|
||||||
|
|
||||||
RETVAL=0
|
|
||||||
|
|
||||||
prog="keepalived"
|
prog="keepalived"
|
||||||
|
config="/etc/keepalived/keepalived.conf"
|
||||||
|
|
||||||
|
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
||||||
|
|
||||||
|
lockfile=/var/lock/subsys/$prog
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
[ -x $exec ] || exit 5
|
||||||
|
[ -e $config ] || exit 6
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
daemon keepalived ${KEEPALIVED_OPTIONS}
|
daemon $exec $KEEPALIVED_OPTIONS
|
||||||
RETVAL=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
|
[ $retval -eq 0 ] && touch $lockfile
|
||||||
|
return $retval
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo -n $"Stopping $prog: "
|
echo -n $"Stopping $prog: "
|
||||||
killproc keepalived
|
killproc $prog
|
||||||
RETVAL=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
|
[ $retval -eq 0 ] && rm -f $lockfile
|
||||||
|
return $retval
|
||||||
|
}
|
||||||
|
|
||||||
|
restart() {
|
||||||
|
stop
|
||||||
|
start
|
||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
echo -n $"Reloading $prog: "
|
echo -n $"Reloading $prog: "
|
||||||
killproc keepalived -1
|
killproc $prog -1
|
||||||
RETVAL=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
|
return $retval
|
||||||
}
|
}
|
||||||
|
|
||||||
# See how we were called.
|
force_reload() {
|
||||||
|
restart
|
||||||
|
}
|
||||||
|
|
||||||
|
rh_status() {
|
||||||
|
status $prog
|
||||||
|
}
|
||||||
|
|
||||||
|
rh_status_q() {
|
||||||
|
rh_status &>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
start
|
rh_status_q && exit 0
|
||||||
|
$1
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
stop
|
rh_status_q || exit 0
|
||||||
;;
|
$1
|
||||||
reload|force-reload)
|
|
||||||
reload
|
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
stop
|
$1
|
||||||
start
|
|
||||||
;;
|
;;
|
||||||
condrestart|try-restart)
|
reload)
|
||||||
if [ -f /var/lock/subsys/$prog ]; then
|
rh_status_q || exit 7
|
||||||
stop
|
$1
|
||||||
start
|
;;
|
||||||
else
|
force-reload)
|
||||||
echo $"Service $prog not running."
|
force_reload
|
||||||
exit 7
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status keepalived
|
rh_status
|
||||||
|
;;
|
||||||
|
condrestart|try-restart)
|
||||||
|
rh_status_q || exit 0
|
||||||
|
restart
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop|reload|force-reload|restart|try-restart|status}"
|
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
|
||||||
exit 3
|
exit 2
|
||||||
esac
|
esac
|
||||||
|
exit $?
|
||||||
|
|
||||||
exit $RETVAL
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
Summary: HA monitor built upon LVS, VRRP and service pollers
|
Summary: HA monitor built upon LVS, VRRP and service pollers
|
||||||
Name: keepalived
|
Name: keepalived
|
||||||
Version: 1.1.15
|
Version: 1.1.17
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.keepalived.org/
|
URL: http://www.keepalived.org/
|
||||||
@ -39,7 +39,7 @@ healthchecks and LVS directors failover.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .installmodes
|
%patch0 -p1 -b .installmodes
|
||||||
# Fix file mode (600 as of 1.1.13)
|
# Fix file mode (600 as of 1.1.13, still as of 1.1.17)
|
||||||
%{__chmod} a+r doc/samples/sample.misccheck.smbcheck.sh
|
%{__chmod} a+r doc/samples/sample.misccheck.smbcheck.sh
|
||||||
# Included as doc, so disable its dependencies
|
# Included as doc, so disable its dependencies
|
||||||
%{__chmod} -x goodies/arpreset.pl
|
%{__chmod} -x goodies/arpreset.pl
|
||||||
@ -57,7 +57,7 @@ KERNELDIR=$(ls -1d /lib/modules/%{kernel}*/build | head -1)
|
|||||||
%{__make} install DESTDIR=%{buildroot}
|
%{__make} install DESTDIR=%{buildroot}
|
||||||
# Remove "samples", as we include them in %%doc
|
# Remove "samples", as we include them in %%doc
|
||||||
%{__rm} -rf %{buildroot}%{_sysconfdir}/keepalived/samples/
|
%{__rm} -rf %{buildroot}%{_sysconfdir}/keepalived/samples/
|
||||||
# Overwrite the init script with our (mostly) LSB compliant one
|
# Overwrite the init script with our LSB compliant one
|
||||||
%{__install} -p -m 0755 %{SOURCE1} \
|
%{__install} -p -m 0755 %{SOURCE1} \
|
||||||
%{buildroot}%{_sysconfdir}/rc.d/init.d/keepalived
|
%{buildroot}%{_sysconfdir}/rc.d/init.d/keepalived
|
||||||
|
|
||||||
@ -106,7 +106,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.15-8
|
* Sun Apr 12 2009 Matthias Saou <http://freshrpms.net/> 1.1.17-1
|
||||||
|
- Update to 1.1.17.
|
||||||
|
- Update init script all the way.
|
||||||
|
|
||||||
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> 1.1.15-7
|
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> 1.1.15-7
|
||||||
|
Loading…
Reference in New Issue
Block a user