[lldpad] Mute systemd output (#737897)
Petr Sabata
psabata at fedoraproject.org
Tue Sep 13 11:40:15 UTC 2011
commit 61999fd6b7c7ddc28147f511525fb1bcbcc1f5db
Author: Petr Sabata <contyk at redhat.com>
Date: Tue Sep 13 13:39:06 2011 +0200
Mute systemd output (#737897)
lldpad.spec | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/lldpad.spec b/lldpad.spec
index fe33478..d2d56b9 100644
--- a/lldpad.spec
+++ b/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 at redhat.com> - 0.9.43-3
+- Mute systemd output (#737897)
+
* Tue Aug 30 2011 Petr Sabata <contyk at 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
More information about the scm-commits
mailing list