mirror of
https://github.com/ceph/ceph
synced 2025-04-19 22:05:52 +00:00
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:
parent
21d941e83b
commit
9baf5ef4f3
22
ceph.spec.in
22
ceph.spec.in
@ -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,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user