- Fix init script packaging after enabling systemd support
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=195
This commit is contained in:
parent
cac6daf6b8
commit
b4b10fd188
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 14:40:32 MST 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
- Fix init script packaging after enabling systemd support
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 24 14:26:47 MST 2012 - jfehlig@suse.com
|
Tue Jan 24 14:26:47 MST 2012 - jfehlig@suse.com
|
||||||
|
|
||||||
|
@ -807,7 +807,7 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%service_add_post libvirtd.service libvirt-guests.service
|
%service_add_post libvirtd.service libvirt-guests.service
|
||||||
%else
|
%endif
|
||||||
%if 0%{?sles_version}
|
%if 0%{?sles_version}
|
||||||
%{fillup_and_insserv -y libvirtd}
|
%{fillup_and_insserv -y libvirtd}
|
||||||
%else # ! sles
|
%else # ! sles
|
||||||
@ -815,15 +815,13 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
%{fillup_only -n libvirt-guests}
|
%{fillup_only -n libvirt-guests}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if %{with_libvirtd}
|
%if %{with_libvirtd}
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%service_del_preun libvirtd.service libvirt-guests.service
|
%service_del_preun libvirtd.service libvirt-guests.service
|
||||||
%else
|
|
||||||
%stop_on_removal libvirtd
|
|
||||||
%endif
|
%endif
|
||||||
|
%stop_on_removal libvirtd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
@ -831,9 +829,8 @@ fi
|
|||||||
%if %{with_libvirtd}
|
%if %{with_libvirtd}
|
||||||
%if %{with_systemd}
|
%if %{with_systemd}
|
||||||
%service_del_postun libvirtd.service libvirt-guests.service
|
%service_del_postun libvirtd.service libvirt-guests.service
|
||||||
%else
|
|
||||||
%restart_on_update libvirtd
|
|
||||||
%endif
|
%endif
|
||||||
|
%restart_on_update libvirtd
|
||||||
%endif
|
%endif
|
||||||
%insserv_cleanup
|
%insserv_cleanup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user