]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian/rules: install systemd files and /etc/default/ceph
authorSage Weil <sage@redhat.com>
Sat, 5 Sep 2015 13:14:15 +0000 (09:14 -0400)
committerSage Weil <sage@redhat.com>
Fri, 11 Sep 2015 15:38:26 +0000 (11:38 -0400)
Fix the systemd units to use /etc/default instead of /etc/sysconfig.  There
is probably a better way...

Signed-off-by: Sage Weil <sage@redhat.com>
debian/rules
etc/default/ceph [new file with mode: 0644]

index 5521d05bb2fd4ea9ace09bfb3ae8cfc8402419df..b2bb77cf64c0eaf24fcddb0bd98337a09ec2db93 100755 (executable)
@@ -129,6 +129,34 @@ binary-arch: build install
        mv debian/ceph/etc/init/ceph-mds* debian/ceph-mds/etc/init
        install -d -m0755 debian/radosgw/etc/init
        install -m0644 src/upstart/radosgw*.conf debian/radosgw/etc/init
+       # install the systemd stuff manually since we have funny service names
+       install -d -m0755 debian/ceph-common/lib/systemd/system
+       install -m0644 systemd/ceph.target debian/ceph-common/lib/systemd/system
+       install -d -m0755 debian/ceph-common/etc/default/ceph
+       install -m0644 etc/default/ceph debian/ceph-common/etc/default/ceph
+       install -d -m0755 debian/ceph-common/lib/tmpfiles.d
+       install -m 0644 -D systemd/ceph.tmpfiles.d debian/ceph-common/lib/tmpfiles.d/ceph.conf
+
+       install -d -m0755 debian/ceph/lib/systemd/system
+       install -m0644 systemd/ceph-mon@.service debian/ceph/lib/systemd/system
+       install -m0644 systemd/ceph-create-keys@.service debian/ceph/lib/systemd/system
+       install -m0644 systemd/ceph-osd@.service debian/ceph/lib/systemd/system
+       install -m0644 systemd/ceph-disk@.service debian/ceph/lib/systemd/system
+       sed -i s./etc/sysconfig/./etc/default/.g debian/ceph/lib/systemd/system/ceph-mon@.service
+       sed -i s./etc/sysconfig/./etc/default/.g debian/ceph/lib/systemd/system/ceph-create-keys@.service
+       sed -i s./etc/sysconfig/./etc/default/.g debian/ceph/lib/systemd/system/ceph-osd@.service
+       sed -i s./etc/sysconfig/./etc/default/.g debian/ceph/lib/systemd/system/ceph-disk@.service
+
+       install -d -m0755 debian/ceph-mds/lib/systemd/system
+       install -m0644 systemd/ceph-mds@.service debian/ceph-mds/lib/systemd/system
+       sed -i s./etc/sysconfig/./etc/default/.g debian/ceph-mds/lib/systemd/system/ceph-mds@.service
+
+       install -d -m0755 debian/radosgw/lib/systemd/system
+       install -m0644 systemd/ceph-radosgw@.service debian/radosgw/lib/systemd/system
+       sed -i s./etc/sysconfig/./etc/default/.g debian/radosgw/lib/systemd/system/ceph-radosgw@.service
+       install -d -m0755 debian/radosgw/lib/tmpfiles.d
+       install -m 0644 -D systemd/ceph-rgw.tmpfiles.d debian/radosgw/lib/tmpfiles.d/ceph-rgw.conf
+
        dh_installman -a
        dh_lintian -a
        dh_link -a
diff --git a/etc/default/ceph b/etc/default/ceph
new file mode 100644 (file)
index 0000000..6d6f40e
--- /dev/null
@@ -0,0 +1,12 @@
+# /etc/default/ceph
+#
+# Environment file for ceph daemon systemd unit files.
+#
+
+## use jemalloc instead of tcmalloc
+#
+# jemalloc is generally faster for small IO workloads and when
+# ceph-osd is backed by SSDs.  However, memory usage is usually
+# higher by 200-300mb.
+#
+#LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1