Migrate to systemd scriptlets

This commit is contained in:
Petr Šabata 2012-08-28 13:28:28 +02:00
parent 1ad910aaba
commit c59f8e5204

View File

@ -3,7 +3,7 @@
Name: lldpad Name: lldpad
Version: 0.9.45 Version: 0.9.45
Release: 2%{?dist} Release: 3%{?dist}
Summary: Intel LLDP Agent Summary: Intel LLDP Agent
Group: System Environment/Daemons Group: System Environment/Daemons
License: GPLv2 License: GPLv2
@ -63,21 +63,14 @@ rm -f %{buildroot}%{_libdir}/liblldp_clif.la
%post %post
/sbin/ldconfig /sbin/ldconfig
if [ $1 -eq 1 ]; then %systemd_post %{name}.service
systemctl daemon-reload >/dev/null 2>&1 || :
fi
%preun %preun
if [ $1 -eq 0 ]; then %systemd_preun %{name}.service
systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
systemctl stop %{name}.service >/dev/null 2>&1 || :
fi
%postun %postun
/sbin/ldconfig /sbin/ldconfig
if [ $1 -eq 1 ]; then %systemd_postun_with_restart %{name}.service
systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
%post devel %post devel
## provide legacy support for apps that use the old dcbd interface. ## provide legacy support for apps that use the old dcbd interface.
@ -112,6 +105,9 @@ fi
%{_libdir}/liblldp_clif.so %{_libdir}/liblldp_clif.so
%changelog %changelog
* Tue Aug 28 2012 Petr Šabata <contyk@redhat.com> - 0.9.45-3
- Migrate to systemd scriptlets (#850192)
* Thu Aug 23 2012 Petr Šabata <contyk@redhat.com> - 0.9.45-2 * Thu Aug 23 2012 Petr Šabata <contyk@redhat.com> - 0.9.45-2
- Fix displaying of the Management Address TLV (327ef662) - Fix displaying of the Management Address TLV (327ef662)