Use new systemd-rpm macros (#850168).
This commit is contained in:
parent
6ae9483552
commit
8caf08e2cf
23
ipvsadm.spec
23
ipvsadm.spec
@ -1,7 +1,7 @@
|
||||
Summary: Utility to administer the Linux Virtual Server
|
||||
Name: ipvsadm
|
||||
Version: 1.26
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: http://www.linuxvirtualserver.org/software/ipvs.html
|
||||
@ -51,24 +51,14 @@ rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post ipvsadm.service
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
# Package removal, not upgrade
|
||||
/bin/systemctl --no-reload disable ipvsadm.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl stop ipvsadm.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun ipvsadm.service
|
||||
|
||||
%postun
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ $1 -ge 1 ] ; then
|
||||
# Package upgrade, not uninstall
|
||||
/bin/systemctl try-restart ipvsadm.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_postun_with_restart ipvsadm.service
|
||||
|
||||
|
||||
%triggerun -- ipvsadm < 1.26-4
|
||||
# Save the current service runlevel info
|
||||
@ -94,6 +84,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Mar 20 2013 Ryan O'Hara <rohara@redhat.com> - 1.26-8
|
||||
- Use new systemd-rpm macros in ipvsadm spec file (#850168).
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user