]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in, init-ceph.in: Don't autostart ceph service on Fedora.
authorErik Logtenberg <erik@logtenberg.eu>
Thu, 31 Jul 2014 22:13:50 +0000 (00:13 +0200)
committerDan Mick <dan.mick@inktank.com>
Wed, 27 Aug 2014 19:56:07 +0000 (12:56 -0700)
This patch is taken from the current Fedora package and makes the upstream
ceph.spec compliant with Fedora policy. The goal is to be fully compliant
upstream so that we can replace current Fedora package with upstream
package to fix many bugs in Fedora.

Addition from Dan Mick <dan.mick@inktank.com>:
Do this for RHEL and Centos as well, since they surely will benefit
from the same policy.   Note: this requires changes to
autobuild-ceph and ceph-build scripts, which currently copy
only the dist tarball to the rpmbuild/SOURCES dir.

Signed-off-by: Erik Logtenberg <erik@logtenberg.eu>
Signed-off-by: Dan Mick <dan.mick@inktank.com>:
ceph.spec.in
init-ceph.in-fedora.patch [new file with mode: 0644]

index ac3632e60311fafffa61b27e9da968d401a97b26..2631faed8f761cd7fb51d6cfda837e21c83b0b19 100644 (file)
@@ -16,6 +16,9 @@ License:      GPL-2.0
 Group:         System Environment/Base
 URL:           http://ceph.com/
 Source0:       http://ceph.com/download/%{name}-%{version}.tar.bz2
+%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel_version}
+Patch0:                init-ceph.in-fedora.patch
+%endif
 Requires:      librbd1 = %{version}-%{release}
 Requires:      librados2 = %{version}-%{release}
 Requires:      libcephfs1 = %{version}-%{release}
@@ -307,6 +310,9 @@ librbd1 or libcephfs1 instead.
 #################################################################################
 %prep
 %setup -q
+%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
+%patch0 -p1 -b .init
+%endif
 
 %build
 # Find jni.h
diff --git a/init-ceph.in-fedora.patch b/init-ceph.in-fedora.patch
new file mode 100644 (file)
index 0000000..ff741f3
--- /dev/null
@@ -0,0 +1,18 @@
+diff -up ceph-0.46/src/init-ceph.in.orig ceph-0.46/src/init-ceph.in
+--- ceph-0.46/src/init-ceph.in.orig    2012-04-24 16:06:39.000000000 -0400
++++ ceph-0.46/src/init-ceph.in 2012-05-09 16:41:36.500004052 -0400
+@@ -1,11 +1,11 @@
+ #!/bin/sh
+ # Start/stop ceph daemons
+-# chkconfig: 2345 60 80
++# chkconfig: - 60 80
+
+ ### BEGIN INIT INFO
+ # Provides:          ceph
+-# Default-Start:     2 3 4 5
+-# Default-Stop:      0 1 6
++# Default-Start:
++# Default-Stop:
+ # Required-Start:    $remote_fs $named $network $time
+ # Required-Stop:     $remote_fs $named $network $time
+ # Short-Description: Start Ceph distributed file system daemons at boot time