ceph.spec: don't chkconfig

This was fighting with suse insserv.  Still needs some cleanup.

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-10-17 08:51:47 -07:00
parent 21d941e83b
commit 9baf5ef4f3

View File

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