Migrate to systemd scriptlets
This commit is contained in:
parent
1ad910aaba
commit
c59f8e5204
18
lldpad.spec
18
lldpad.spec
@ -3,7 +3,7 @@
|
||||
|
||||
Name: lldpad
|
||||
Version: 0.9.45
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Intel LLDP Agent
|
||||
Group: System Environment/Daemons
|
||||
License: GPLv2
|
||||
@ -63,21 +63,14 @@ rm -f %{buildroot}%{_libdir}/liblldp_clif.la
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
if [ $1 -eq 1 ]; then
|
||||
systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post %{name}.service
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
|
||||
systemctl stop %{name}.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun %{name}.service
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
if [ $1 -eq 1 ]; then
|
||||
systemctl try-restart %{name}.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
|
||||
%post devel
|
||||
## provide legacy support for apps that use the old dcbd interface.
|
||||
@ -112,6 +105,9 @@ fi
|
||||
%{_libdir}/liblldp_clif.so
|
||||
|
||||
%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
|
||||
- Fix displaying of the Management Address TLV (327ef662)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user