Do not enable fcoemon by default (#701999)

This commit is contained in:
Petr Sabata 2011-10-06 16:06:05 +02:00
parent f38dd25308
commit 1092e6663a

View File

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