Martin Sivák has uploaded a new change for review.

Change subject: Fix preun and postun init script management in spec file
......................................................................

Fix preun and postun init script management in spec file

This fixes the issue when uninstalling package from Sys V init
based system. It called chconfig after the main init file was
already gone. That call then obviously failed.

It also adds the systemd preun management macro.

Change-Id: Ife5b948d0e3a58abea67e30ec5c300938bbb3c18
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1055156
Signed-off-by: Martin Sivak <[email protected]>
---
M ovirt-scheduler-proxy.spec
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-scheduler-proxy 
refs/changes/11/23411/1

diff --git a/ovirt-scheduler-proxy.spec b/ovirt-scheduler-proxy.spec
index 5423051..2cbfaca 100644
--- a/ovirt-scheduler-proxy.spec
+++ b/ovirt-scheduler-proxy.spec
@@ -151,13 +151,18 @@
 
 
 %postun
-
 # Make sure that the service is stoped and removed from the systemd
 # configuration:
 %if %{install_systemd}
 %systemd_postun ovirt-scheduler-proxy.service
 %endif
 
+%preun
+# Make sure that the service is stoped
+%if %{install_systemd}
+%systemd_preun ovirt-scheduler-proxy.service
+%endif
+
 # Stop the SysV service only if the package is being completely
 # uninstalled:
 %if %{install_systemv}


-- 
To view, visit http://gerrit.ovirt.org/23411
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife5b948d0e3a58abea67e30ec5c300938bbb3c18
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-scheduler-proxy
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to