auto-import changelog data from mdadm-1.5.0-7.src.rpm
Wed May 19 2004 Jeremy Katz <katzj@redhat.com> - 1.5.0-7 - add patch with reallyforce mode on creation to be used by anaconda Wed May 12 2004 Doug Ledford <dledford@redhat.com> 2.5.0-6 - Fix a bug in the %postun scriptlet related to downgrading to a version of mdadm that doesn't include the mdmpd daemon. Fri May 07 2004 Doug Ledford <dledford@redhat.com> 1.5.0-5 - Disable service mdmpd by default to avoid [Failed] messages on current 2.6 kernels. Possibly re-enable it by default once the 2.6 kernels have the md event interface. Thu Apr 22 2004 Doug Ledford <dledford@redhat.com> 1.5.0-4 - Update mdmonitor script to start daemon more cleanly - Repackage mdmpd tarball to include gcc-3.4 changes and to make mdmpd properly daemonize at startup instead of forking and leaving the child attached to the terminal.
This commit is contained in:
parent
ab5716121a
commit
580b152b0e
@ -1,2 +1,2 @@
|
|||||||
mdadm-1.5.0.tgz
|
mdadm-1.5.0.tgz
|
||||||
mdmpd-0.1.tgz
|
mdmpd-0.2.tgz
|
||||||
|
36
mdadm.spec
36
mdadm.spec
@ -1,14 +1,14 @@
|
|||||||
Summary: mdadm controls Linux md devices (software RAID arrays)
|
Summary: mdadm controls Linux md devices (software RAID arrays)
|
||||||
Name: mdadm
|
Name: mdadm
|
||||||
Version: 1.5.0
|
Version: 1.5.0
|
||||||
Release: 3
|
Release: 7
|
||||||
Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz
|
Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz
|
||||||
Source1: mdmonitor.init
|
Source1: mdmonitor.init
|
||||||
Source2: mdmpd-0.1.tgz
|
Source2: mdmpd-0.2.tgz
|
||||||
Source3: mdmpd.init
|
Source3: mdmpd.init
|
||||||
Patch: mdadm-1.4.0-build-mdmpd.patch
|
Patch: mdadm-1.4.0-build-mdmpd.patch
|
||||||
Patch1: mdadm-1.5.0-email.patch
|
Patch1: mdadm-1.5.0-email.patch
|
||||||
Patch2: mdmpd-0.1-gcc-3.4.patch
|
Patch2: mdadm-1.5.0-reallyforce.patch
|
||||||
URL: http://www.cse.unsw.edu.au/~neilb/source/mdadm/
|
URL: http://www.cse.unsw.edu.au/~neilb/source/mdadm/
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -27,7 +27,7 @@ file can be used to help with some common tasks.
|
|||||||
%setup -q -a 2
|
%setup -q -a 2
|
||||||
%patch -p1 -b .mdmpd-make
|
%patch -p1 -b .mdmpd-make
|
||||||
%patch1 -p1 -b .email
|
%patch1 -p1 -b .email
|
||||||
%patch2 -p1 -b .gcc-3.4
|
%patch2 -p1 -b .reallyforce
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}"
|
make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}"
|
||||||
@ -51,14 +51,18 @@ mkdir -p -m 700 $RPM_BUILD_ROOT/var/run/mdmpd
|
|||||||
if [ "$1" = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
service mdmonitor stop > /dev/null 2>&1 ||:
|
service mdmonitor stop > /dev/null 2>&1 ||:
|
||||||
/sbin/chkconfig --del mdmonitor
|
/sbin/chkconfig --del mdmonitor
|
||||||
service mdmpd stop > /dev/null 2>&1 ||:
|
if [ -e %{_initrddir}/mdmpd ]; then
|
||||||
/sbin/chkconfig --del mdmpd
|
service mdmpd stop > /dev/null 2>&1 ||:
|
||||||
|
/sbin/chkconfig --del mdmpd
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" -ge "1" ]; then
|
if [ "$1" -ge "1" ]; then
|
||||||
service mdmonitor condrestart > /dev/null 2>&1
|
service mdmonitor condrestart > /dev/null 2>&1
|
||||||
service mdmpd condrestart > /dev/null 2>&1
|
if [ -e %{_initrddir}/mdmpd ]; then
|
||||||
|
service mdmpd condrestart > /dev/null 2>&1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -71,6 +75,24 @@ fi
|
|||||||
%attr(0700,root,root) %dir /var/run/mdmpd
|
%attr(0700,root,root) %dir /var/run/mdmpd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 19 2004 Jeremy Katz <katzj@redhat.com> - 1.5.0-7
|
||||||
|
- add patch with reallyforce mode on creation to be used by anaconda
|
||||||
|
|
||||||
|
* Wed May 12 2004 Doug Ledford <dledford@redhat.com> 2.5.0-6
|
||||||
|
- Fix a bug in the %postun scriptlet related to downgrading to a version
|
||||||
|
of mdadm that doesn't include the mdmpd daemon.
|
||||||
|
|
||||||
|
* Fri May 07 2004 Doug Ledford <dledford@redhat.com> 1.5.0-5
|
||||||
|
- Disable service mdmpd by default to avoid [Failed] messages on
|
||||||
|
current 2.6 kernels. Possibly re-enable it by default once the
|
||||||
|
2.6 kernels have the md event interface.
|
||||||
|
|
||||||
|
* Thu Apr 22 2004 Doug Ledford <dledford@redhat.com> 1.5.0-4
|
||||||
|
- Update mdmonitor script to start daemon more cleanly
|
||||||
|
- Repackage mdmpd tarball to include gcc-3.4 changes and to make
|
||||||
|
mdmpd properly daemonize at startup instead of forking and leaving
|
||||||
|
the child attached to the terminal.
|
||||||
|
|
||||||
* Thu Mar 4 2004 Bill Nottingham <notting@redhat.com> 1.5.0-3
|
* Thu Mar 4 2004 Bill Nottingham <notting@redhat.com> 1.5.0-3
|
||||||
- ship /var/run/mpmpd (#117497)
|
- ship /var/run/mpmpd (#117497)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# mdmonitor This starts, stops, and reloads the mdadm-based
|
# mdmonitor This starts, stops, and reloads the mdadm-based
|
||||||
# software RAID monitoring and management facility
|
# software RAID monitoring and management facility
|
||||||
#
|
#
|
||||||
# chkconfig: 2345 99 99
|
# chkconfig: 2345 15 85
|
||||||
# description: software RAID monitoring and management
|
# description: software RAID monitoring and management
|
||||||
# config: /etc/mdadm.conf
|
# config: /etc/mdadm.conf
|
||||||
#
|
#
|
||||||
@ -35,23 +35,28 @@ start ()
|
|||||||
{
|
{
|
||||||
ulimit -S -c 0 >/dev/null 2>&1
|
ulimit -S -c 0 >/dev/null 2>&1
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
mdadm --monitor --scan &
|
daemon --check mdadm \
|
||||||
echo $! > /var/run/mdadm.pid
|
"/bin/bash -c \"mdadm --monitor --scan -f > /var/run/mdadm.pid\""
|
||||||
# hack: wait for mdadm to die, assume success if it doesn't die quickly
|
# hack: wait for mdadm to die, assume success if it doesn't die quickly
|
||||||
usleep 100000
|
usleep 100000
|
||||||
if [ -d /proc/$(cat /var/run/mdadm.pid) ] ; then
|
if [ -s /var/run/mdadm.pid -a -d /proc/$(cat /var/run/mdadm.pid) ] ; then
|
||||||
success $"mdadm"
|
success $"mdadm"
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
touch /var/lock/subsys/$prog
|
||||||
else
|
else
|
||||||
failure $"mdadm"
|
failure $"mdadm"
|
||||||
|
rm -f /var/run/mdadm.pid
|
||||||
|
rm -f /var/lock/subsys/$prog
|
||||||
RETVAL=1
|
RETVAL=1
|
||||||
fi
|
fi
|
||||||
touch /var/lock/subsys/$prog
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
stop ()
|
stop ()
|
||||||
{
|
{
|
||||||
|
echo -n "Killing $prog: "
|
||||||
killproc mdadm
|
killproc mdadm
|
||||||
|
echo
|
||||||
rm -f /var/run/mdadm.pid
|
rm -f /var/run/mdadm.pid
|
||||||
rm -f /var/lock/subsys/$prog
|
rm -f /var/lock/subsys/$prog
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user