[openstack-cinder/el6-havana] Registration/restart/removal for cinder-backup svc

Eric Harney eharney at fedoraproject.org
Thu Oct 17 20:09:55 UTC 2013


commit 2b24c033d03400ff06158c03fd62acea91e2b04e
Author: Eric Harney <eharney at redhat.com>
Date:   Thu Oct 17 12:35:54 2013 -0400

    Registration/restart/removal for cinder-backup svc

 openstack-cinder.spec |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/openstack-cinder.spec b/openstack-cinder.spec
index 66ef6f1..1c48d5c 100644
--- a/openstack-cinder.spec
+++ b/openstack-cinder.spec
@@ -252,16 +252,13 @@ fi
 exit 0
 
 %post
-if [ $1 -eq 1 ] ; then
-    # Initial installation
-    for svc in volume api scheduler; do
-        /sbin/chkconfig --add openstack-cinder-$svc
-    done
-fi
+for svc in volume api scheduler backup; do
+    /sbin/chkconfig --add openstack-cinder-$svc
+done
 
 %preun
 if [ $1 -eq 0 ] ; then
-    for svc in volume api scheduler; do
+    for svc in volume api scheduler backup; do
         /sbin/service openstack-cinder-${svc} stop > /dev/null 2>&1
         /sbin/chkconfig --del openstack-cinder-${svc}
     done
@@ -270,7 +267,7 @@ fi
 %postun
 if [ $1 -ge 1 ] ; then
     # Package upgrade, not uninstall
-    for svc in volume api scheduler; do
+    for svc in volume api scheduler backup; do
         /sbin/service openstack-cinder-${svc} condrestart > /dev/null 2>&1 || :
     done
 fi
@@ -314,6 +311,7 @@ fi
 %changelog
 * Thu Oct 17 2013 Eric Harney <eharney at redhat.com> - 2013.2-1
 - Update to 2013.2 (Havana)
+- Handle cinder-backup service registration/restart/removal
 
 * Wed Oct 16 2013 Eric Harney <eharney at redhat.com> - 2013.2-0.13.rc3
 - Update to Havana RC3


More information about the scm-commits mailing list