[openstack-ceilometer] ensure service files are registered with systemd at install time

Pádraig Brady pbrady at fedoraproject.org
Fri Oct 10 17:45:41 UTC 2014


commit 6a331b95f10db3fa0471bad349889868dca78982
Author: Pádraig Brady <P at draigBrady.com>
Date:   Fri Oct 10 18:43:15 2014 +0100

    ensure service files are registered with systemd at install time
    
    Since F18, not specifying a service name to systemd_post
    would result in a noop:
      https://lists.fedoraproject.org/pipermail/devel/2012-August/171137.html
      https://bugs.freedesktop.org/show_bug.cgi?id=69096#c1
    
    Also support any openstack service auto enablement presets if present
    t

 openstack-ceilometer.spec |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/openstack-ceilometer.spec b/openstack-ceilometer.spec
index 02edbe2..980e8f1 100644
--- a/openstack-ceilometer.spec
+++ b/openstack-ceilometer.spec
@@ -4,7 +4,7 @@
 
 Name:             openstack-ceilometer
 Version:          2014.2
-Release:          0.5.b3%{?dist}
+Release:          0.6.b3%{?dist}
 Summary:          OpenStack measurement collection service
 
 Group:            Applications/System
@@ -373,7 +373,7 @@ if [ $1 -eq 1 ] ; then
     /sbin/chkconfig --add %{name}-compute
 fi
 %else
-%systemd_post
+%systemd_post %{name}-compute.service
 %endif
 
 %post collector
@@ -383,7 +383,7 @@ if [ $1 -eq 1 ] ; then
     /sbin/chkconfig --add %{name}-collector
 fi
 %else
-%systemd_post
+%systemd_post %{name}-collector.service
 %endif
 
 %post notification
@@ -393,7 +393,7 @@ if [ $1 -eq 1 ] ; then
     /sbin/chkconfig --add %{name}-notification
 fi
 %else
-%systemd_post
+%systemd_post %{name}-notification.service
 %endif
 
 %post api
@@ -403,7 +403,7 @@ if [ $1 -eq 1 ] ; then
     /sbin/chkconfig --add %{name}-api
 fi
 %else
-%systemd_post
+%systemd_post %{name}-api.service
 %endif
 
 %post central
@@ -413,7 +413,7 @@ if [ $1 -eq 1 ] ; then
     /sbin/chkconfig --add %{name}-central
 fi
 %else
-%systemd_post
+%systemd_post %{name}-central.service
 %endif
 
 %post alarm
@@ -425,7 +425,7 @@ if [ $1 -eq 1 ] ; then
     done
 fi
 %else
-%systemd_post
+%systemd_post %{name}-alarm-notifier.service %{name}-alarm-evaluator.service
 %endif
 
 %preun compute
@@ -676,6 +676,9 @@ fi
 
 
 %changelog
+* Fri Oct 10 2014 Pádraig Brady <pbrady at redhat.com> - 2014.2-0.6.b3
+- Ensure service files are registered with systemd at install time
+
 * Thu Oct 02 2014 Eoghan Glynn <eglynn at redhat.com> 2014.2-0.5.b3
 - Added python-tooz dependency for compute agent
 


More information about the scm-commits mailing list