auto-import changelog data from mdadm-1.5.0-11.src.rpm

Fri Jul 30 2004 Dan Walsh <dwalsh@redhat.com> 1.5.0-11
- Create a directory /var/run/mdadm to contain mdadm.pid
- This cleans up SELinux problem
This commit is contained in:
cvsdist 2004-09-09 08:29:29 +00:00
parent 0c323be48c
commit 712f27f33a
2 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,7 @@
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: 10 Release: 11
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.3.tgz Source2: mdmpd-0.3.tgz
@ -39,6 +39,7 @@ install -D -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initrddir}/mdmonitor
install -D -m755 %{SOURCE3} $RPM_BUILD_ROOT/%{_initrddir}/mdmpd install -D -m755 %{SOURCE3} $RPM_BUILD_ROOT/%{_initrddir}/mdmpd
mkdir -p -m 700 $RPM_BUILD_ROOT/var/run/mdmpd mkdir -p -m 700 $RPM_BUILD_ROOT/var/run/mdmpd
mkdir -p -m 700 $RPM_BUILD_ROOT/var/run/mdadm
%clean %clean
[ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
@ -73,8 +74,13 @@ fi
%config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf %config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf
%{_mandir}/man*/md* %{_mandir}/man*/md*
%attr(0700,root,root) %dir /var/run/mdmpd %attr(0700,root,root) %dir /var/run/mdmpd
%attr(0700,root,root) %dir /var/run/mdadm
%changelog %changelog
* Fri Jul 30 2004 Dan Walsh <dwalsh@redhat.com> 1.5.0-11
- Create a directory /var/run/mdadm to contain mdadm.pid
- This cleans up SELinux problem
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt - rebuilt

View File

@ -36,16 +36,16 @@ 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: "
daemon --check mdadm \ daemon --check mdadm \
"/bin/bash -c \"mdadm --monitor --scan -f > /var/run/mdadm.pid\"" "/bin/bash -c \"mdadm --monitor --scan -f > /var/run/mdadm/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 [ -s /var/run/mdadm.pid -a -d /proc/$(cat /var/run/mdadm.pid) ] ; then if [ -s /var/run/mdadm/mdadm.pid -a -d /proc/$(cat /var/run/mdadm/mdadm.pid) ] ; then
success $"mdadm" success $"mdadm"
RETVAL=0 RETVAL=0
touch /var/lock/subsys/$prog touch /var/lock/subsys/$prog
else else
failure $"mdadm" failure $"mdadm"
rm -f /var/run/mdadm.pid rm -f /var/run/mdadm/mdadm.pid
rm -f /var/lock/subsys/$prog rm -f /var/lock/subsys/$prog
RETVAL=1 RETVAL=1
fi fi
@ -57,7 +57,7 @@ stop ()
echo -n "Killing $prog: " echo -n "Killing $prog: "
killproc mdadm killproc mdadm
echo echo
rm -f /var/run/mdadm.pid rm -f /var/run/mdadm/mdadm.pid
rm -f /var/lock/subsys/$prog rm -f /var/lock/subsys/$prog
} }