- 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
|
||||
|
||||
|
@ -807,7 +807,7 @@ fi
|
||||
%endif
|
||||
%if %{with_systemd}
|
||||
%service_add_post libvirtd.service libvirt-guests.service
|
||||
%else
|
||||
%endif
|
||||
%if 0%{?sles_version}
|
||||
%{fillup_and_insserv -y libvirtd}
|
||||
%else # ! sles
|
||||
@ -815,15 +815,13 @@ fi
|
||||
%endif
|
||||
%{fillup_only -n libvirt-guests}
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if %{with_libvirtd}
|
||||
%if %{with_systemd}
|
||||
%service_del_preun libvirtd.service libvirt-guests.service
|
||||
%else
|
||||
%stop_on_removal libvirtd
|
||||
%endif
|
||||
%stop_on_removal libvirtd
|
||||
%endif
|
||||
|
||||
%postun
|
||||
@ -831,9 +829,8 @@ fi
|
||||
%if %{with_libvirtd}
|
||||
%if %{with_systemd}
|
||||
%service_del_postun libvirtd.service libvirt-guests.service
|
||||
%else
|
||||
%restart_on_update libvirtd
|
||||
%endif
|
||||
%restart_on_update libvirtd
|
||||
%endif
|
||||
%insserv_cleanup
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user