于 2014年01月03日 01:09, Aline Manera 写道:
Don't need full path
> diff --git a/contrib/kimchi.spec.fedora.in
> b/contrib/kimchi.spec.fedora.in
> index 577516c..f3c4e35 100644
> --- a/contrib/kimchi.spec.fedora.in
> +++ b/contrib/kimchi.spec.fedora.in
> @@ -34,6 +34,7 @@ BuildRequires: python-unittest2
>
> %if 0%{?with_systemd}
> Requires: systemd
> +Requires: firewalld
> Requires(post): systemd
> Requires(preun): systemd
> Requires(postun): systemd
> @@ -63,6 +64,7 @@ make DESTDIR=%{buildroot} install
> %if 0%{?with_systemd}
> # Install the systemd scripts
> install -Dm 0644 contrib/kimchid.service.fedora
> %{buildroot}%{_unitdir}/kimchid.service
> +install -Dm 0640 src/firewalld.xml
> %{buildroot}%{_prefix}/lib/firewalld/services/kimchid.xml
> %endif
>
> %if 0%{?rhel} == 6
> @@ -81,18 +83,33 @@ if [ $1 -eq 1 ] ; then
> /bin/systemctl daemon-reload >/dev/null 2>&1 || :
> fi
>
> -%if 0%{?rhel} == 6
> -start kimchid
This is specific for RHEL6.
You should keep it as it is and add a new if statement (with_systemd)
to firewall rules
Thanks Aline, all done in V6.
- Eli
--
Thanks Eli (Li Yong) Qiao (qiaoly(a)cn.ibm.com)
CSTL-KVM Frobisher/RHEV-H