From b4b10fd1885e12a342231c2346597649757caf3694c49424323308f626fdeabe Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Wed, 25 Jan 2012 21:42:04 +0000 Subject: [PATCH] - Fix init script packaging after enabling systemd support OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=195 --- libvirt.changes | 5 +++++ libvirt.spec | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libvirt.changes b/libvirt.changes index b0276dd..da60b02 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -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 diff --git a/libvirt.spec b/libvirt.spec index af24e6c..4ac276a 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -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