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
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@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
- Enable hardened build