]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec: don't chkconfig
authorSage Weil <sage@newdream.net>
Mon, 17 Oct 2011 15:51:47 +0000 (08:51 -0700)
committerSage Weil <sage@newdream.net>
Mon, 17 Oct 2011 15:51:47 +0000 (08:51 -0700)
This was fighting with suse insserv.  Still needs some cleanup.

Signed-off-by: Sage Weil <sage@newdream.net>
ceph.spec.in

index a5f21d08eca6b052927078f0431a3d7c1ca44995..434ce4768f711537d5e3e232196b589d6e999976 100644 (file)
@@ -153,10 +153,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
-/sbin/chkconfig --add ceph
-%if %{defined suse_version}
-%fillup_and_insserv -f -y ceph
-%endif
+#/sbin/chkconfig --add ceph
 
 %preun
 %if %{defined suse_version}
@@ -164,7 +161,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 if [ $1 = 0 ] ; then
     /sbin/service ceph stop >/dev/null 2>&1
-    /sbin/chkconfig --del ceph
+#    /sbin/chkconfig --del ceph
 fi
 
 %postun
@@ -293,6 +290,21 @@ fi
 %{_mandir}/man8/radosgw-admin.8*
 %{_libdir}/librgw.so.*
 
+%post radosgw
+%if %{defined suse_version}
+%fillup_and_insserv -f -y radosgw
+%endif
+
+%preun radosgw
+%if %{defined suse_version}
+%stop_on_removal radosgw
+%endif
+
+%postun radosgw
+%if %{defined suse_version}
+%insserv_cleanup
+%endif
+
 %if %{with_gtk2}
 %files gcephtool
 %defattr(-,root,root,-)