Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: engine-service: fixup systemd packaging
......................................................................

packaging: engine-service: fixup systemd packaging

Change-Id: Iad20fb41030644f32673922e85234b540b68f14f
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M packaging/fedora/spec/ovirt-engine.spec.in
1 file changed, 21 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/44/13644/1

diff --git a/packaging/fedora/spec/ovirt-engine.spec.in 
b/packaging/fedora/spec/ovirt-engine.spec.in
index 8f29823..39ddbed 100644
--- a/packaging/fedora/spec/ovirt-engine.spec.in
+++ b/packaging/fedora/spec/ovirt-engine.spec.in
@@ -145,6 +145,13 @@
 # Require JBoss AS 7:
 Requires: jboss-as >= 7.1.1-9.3
 
+%if %{install_systemd}
+BuildRequires: systemd
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+%endif
+
 # We can't require exactly the same version and release of the
 # setup package because it needs to be updated independely as part
 # of the update process implemented in the engine-upgrade script:
@@ -368,6 +375,10 @@
 touch %{buildroot}%{engine_pki}/serial.txt
 
 %preun
+%if %{install_systemd}
+%systemd_preun ovirt-engine.service
+%endif
+
 if [ "$1" -eq 0 ]
 then
     if [ -d "%{engine_pki}" ]; then
@@ -380,6 +391,10 @@
 
 
 %postun
+%if %{install_systemd}
+%systemd_postun ovirt-engine.service
+%endif
+
 if [ "$1" -eq 0 ]
 then
     rm -rf "%{engine_cache}"
@@ -408,6 +423,12 @@
 %create_engine_user
 
 
+%post
+%if %{install_systemd}
+%systemd_post ovirt-engine.service
+%endif
+
+
 %files
 
 # The main package owns most of the directories:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iad20fb41030644f32673922e85234b540b68f14f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to