[fcoe-utils] Do not enable fcoemon by default (#701999)

Petr Sabata psabata at fedoraproject.org
Thu Oct 6 14:08:09 UTC 2011


commit 1092e6663acec2c5df15f9456784b19ab1291c51
Author: Petr Sabata <contyk at redhat.com>
Date:   Thu Oct 6 16:06:05 2011 +0200

    Do not enable fcoemon by default (#701999)

 fcoe-utils.spec |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/fcoe-utils.spec b/fcoe-utils.spec
index f837adb..fde99be 100644
--- a/fcoe-utils.spec
+++ b/fcoe-utils.spec
@@ -3,7 +3,7 @@
 
 Name:               fcoe-utils
 Version:            1.0.20
-Release:            3%{?dist}
+Release:            4%{?dist}
 Summary:            Fibre Channel over Ethernet utilities
 Group:              Applications/System
 License:            GPLv2
@@ -65,18 +65,18 @@ install -m 755 debug/dcbcheck.sh %{buildroot}%{_libexecdir}/fcoe/dcbcheck.sh
 
 %post
 if [ $1 -eq 1 ]; then
-    systemctl enable fcoe.service
+    systemctl daemon-reload >/dev/null 2>&1 || :
 fi
 
 %preun
 if [ $1 -eq 0 ]; then
-    systemctl stop fcoe.service
-    systemctl disable fcoe.service
+    systemctl --no-reload disable fcoe.service >/dev/null 2>&1 || :
+    systemctl stop fcoe.service >/dev/null 2>&1 || :
 fi
 
 %postun
 if [ $1 -ge 1 ]; then
-    systemctl try-restart fcoe.service
+    systemctl try-restart %{name}.service >/dev/null 2>&1 || :
 fi
 
 %files
@@ -97,6 +97,10 @@ fi
 
 
 %changelog
+* Thu Oct 06 2011 Petr Sabata <contyk at redhat.com> - 1.0.20-4
+- Do not enable fcoemon by default (#701999)
+- Silence systemctl output
+
 * Fri Sep 23 2011 Petr Sabata <contyk at redhat.com> - 1.0.20-3
 - Enable hardened build
 


More information about the scm-commits mailing list