[openstack-nova/f21] add novncproxy service to standard %post packaging operation

Pádraig Brady pbrady at fedoraproject.org
Mon Oct 20 13:15:32 UTC 2014


commit 2a53d97f22fd3377ec905489efda3dd83c5e2eab
Author: Pádraig Brady <P at draigBrady.com>
Date:   Mon Oct 20 13:13:11 2014 +0100

    add novncproxy service to standard %post packaging operation
    
    Needed to register the service with systemd if installed separately

 openstack-nova.spec |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/openstack-nova.spec b/openstack-nova.spec
index 0df2389..e5a8ed2 100644
--- a/openstack-nova.spec
+++ b/openstack-nova.spec
@@ -711,6 +711,13 @@ done
 %systemd_post %{name}-cells.service
 %endif
 
+%post novncproxy
+%if 0%{?rhel} && 0%{?rhel} <= 6
+/sbin/chkconfig --add %{name}-novncproxy
+%else
+%systemd_post %{name}-novncproxy.service
+%endif
+
 
 %preun compute
 %if 0%{?rhel} && 0%{?rhel} <= 6
@@ -1127,6 +1134,7 @@ fi
 %changelog
 * Mon Oct 20 2014 Pádraig Brady <pbrady at redhat.com> - 2014.1.3-2
 - Control spicehtml5proxy service on packaging operations
+- Add novncproxy service to standard %%post packaging operation
 
 * Fri Oct 17 2014 Pádraig Brady <pbrady at redhat.com> - 2014.1.3-1
 - Update to upstream 2014.1.3


More information about the scm-commits mailing list