Mute systemd output (#737897)
This commit is contained in:
parent
b7210ab7a2
commit
61999fd6b7
14
lldpad.spec
14
lldpad.spec
@ -1,6 +1,6 @@
|
||||
Name: lldpad
|
||||
Version: 0.9.43
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Intel LLDP Agent
|
||||
Group: System Environment/Daemons
|
||||
License: GPLv2
|
||||
@ -119,18 +119,19 @@ rm -rf %{buildroot}/etc/init.d
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
systemctl enable %{name}.service
|
||||
systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
systemctl enable %{name}.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
systemctl stop %{name}.service
|
||||
systemctl disable %{name}.service
|
||||
systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
|
||||
systemctl stop %{name}.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 1 ]; then
|
||||
systemctl try-restart %{name}.service
|
||||
systemctl try-restart %{name}.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%post devel
|
||||
@ -162,6 +163,9 @@ fi
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Tue Sep 13 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-3
|
||||
- Mute systemd output (#737897)
|
||||
|
||||
* Tue Aug 30 2011 Petr Sabata <contyk@redhat.com> - 0.9.43-2
|
||||
- Apply various upstream 0.9.43 bugfixes
|
||||
- Include not yet accepted Jens Osterkamp's patch to fix bug #720080
|
||||
|
Loading…
Reference in New Issue
Block a user