Switch to new systemd macros for F18+
Resolves bz850202 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
parent
ddb12f7a60
commit
6e6b5143a1
20
mdadm.spec
20
mdadm.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: The mdadm program controls Linux md devices (software RAID arrays)
|
Summary: The mdadm program controls Linux md devices (software RAID arrays)
|
||||||
Name: mdadm
|
Name: mdadm
|
||||||
Version: 3.2.5
|
Version: 3.2.5
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
|
Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
|
||||||
Source1: mdmonitor.init
|
Source1: mdmonitor.init
|
||||||
Source2: raid-check
|
Source2: raid-check
|
||||||
@ -87,21 +87,13 @@ install -d -m 0710 %{buildroot}%{_localstatedir}/run/%{name}/
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post mdmonitor.service mdmonitor-takeover.service
|
||||||
/bin/systemctl enable mdmonitor.service mdmonitor-takeover.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
%systemd_preun mdmonitor.service mdmonitor-takeover.service
|
||||||
/bin/systemctl --no-reload disable mdmonitor.service mdmonitor-takeover.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop mdmonitor.service mdmonitor-takeover.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart mdmonitor.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
/bin/systemctl try-restart mdmonitor.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%triggerun -- %{name} < 3.2.2-3
|
%triggerun -- %{name} < 3.2.2-3
|
||||||
%{_bindir}/systemd-sysv-convert --save mdmonitor >/dev/null 2>&1 || :
|
%{_bindir}/systemd-sysv-convert --save mdmonitor >/dev/null 2>&1 || :
|
||||||
@ -130,6 +122,10 @@ fi
|
|||||||
%{_initrddir}/*
|
%{_initrddir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 10 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.5-8
|
||||||
|
- Switch to using new systemd macros for F18+
|
||||||
|
- Resolves bz850202
|
||||||
|
|
||||||
* Thu Aug 2 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.5-7
|
* Thu Aug 2 2012 Jes Sorensen <Jes.Sorensen@redhat.com> - 3.2.5-7
|
||||||
- Remove bogus rogue patch applied in 3.2.5-5 with justification and
|
- Remove bogus rogue patch applied in 3.2.5-5 with justification and
|
||||||
without following the structure of the mdadm package.
|
without following the structure of the mdadm package.
|
||||||
|
Loading…
Reference in New Issue
Block a user