Migrate to systemd scriptlets
This commit is contained in:
parent
68245241e8
commit
0d7f2241f6
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: fcoe-utils
|
Name: fcoe-utils
|
||||||
Version: 1.0.24
|
Version: 1.0.24
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Fibre Channel over Ethernet utilities
|
Summary: Fibre Channel over Ethernet utilities
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -65,20 +65,13 @@ install -m 755 debug/fcoedump.sh %{buildroot}%{_libexecdir}/fcoe/fcoedump.sh
|
|||||||
install -m 755 debug/dcbcheck.sh %{buildroot}%{_libexecdir}/fcoe/dcbcheck.sh
|
install -m 755 debug/dcbcheck.sh %{buildroot}%{_libexecdir}/fcoe/dcbcheck.sh
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ]; then
|
%systemd_post fcoe.service
|
||||||
systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
%systemd_preun fcoe.service
|
||||||
systemctl --no-reload disable fcoe.service >/dev/null 2>&1 || :
|
|
||||||
systemctl stop fcoe.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -ge 1 ]; then
|
%systemd_postun_with_restart fcoe.service
|
||||||
systemctl try-restart %{name}.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README COPYING quickstart.txt
|
%doc README COPYING quickstart.txt
|
||||||
@ -98,6 +91,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 28 2012 Petr Šabata <contyk@redhat.com> - 1.0.24-2
|
||||||
|
- Migrate to systemd scriptlets (#850104)
|
||||||
|
|
||||||
* Wed Aug 15 2012 Petr Šabata <contyk@redhat.com> - 1.0.24-1
|
* Wed Aug 15 2012 Petr Šabata <contyk@redhat.com> - 1.0.24-1
|
||||||
- 1.0.24 bump
|
- 1.0.24 bump
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user