[Pkg-ceph-commits] [ceph] 10/17: d/rules: Install upstart and systemd configurations for rbd-mirror.

James Downing Page jamespage at moszumanska.debian.org
Thu Mar 31 10:53:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamespage pushed a commit to branch ubuntu-xenial
in repository ceph.

commit a27dd5949b19b90ad6c6a04c0bf14b4cd18b8e44
Author: James Page <james.page at ubuntu.com>
Date:   Wed Mar 30 09:39:20 2016 +0100

    d/rules: Install upstart and systemd configurations for rbd-mirror.
---
 debian/changelog | 1 +
 debian/rules     | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7ef5b9d..e80ad4c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ ceph (10.1.0-0ubuntu1) UNRELEASED; urgency=medium
     - d/p/*: Refresh remaining patches.
     - d/control: Add BD on libldap2-dev for rados gateway.
   * d/rules: Strip rbd-mirror package correctly.
+  * d/rules: Install upstart and systemd configurations for rbd-mirror.
 
  -- James Page <james.page at ubuntu.com>  Wed, 30 Mar 2016 09:12:17 +0100
 
diff --git a/debian/rules b/debian/rules
index 01bc291..7dc21d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -104,6 +104,11 @@ override_dh_installinit:
         cp -v $$conf debian/radosgw.$$name.upstart; \
         dh_installinit -pradosgw --no-start --name=$$name; \
     done
+	for conf in `ls -1 src/upstart/ceph-rbd-mirror*.conf`; do \
+		name=`basename $$conf | cut -d . -f 1`; \
+		cp -v $$conf debian/rbd-mirror.$$name.upstart; \
+		dh_installinit -prbd-mirror --no-start --name=$$name; \
+	done
 	# install the systemd stuff manually since we have funny service names
 	# and need to update the paths in all of the files post install
 	# systemd:ceph-common
@@ -136,6 +141,10 @@ override_dh_installinit:
 	install -d -m0755 debian/radosgw/lib/systemd/system
 	install -m0644 systemd/ceph-radosgw at .service debian/radosgw/lib/systemd/system
 	sed -i s./etc/sysconfig/./etc/default/.g debian/radosgw/lib/systemd/system/ceph-radosgw at .service
+	# systemd:rbd-mirror
+	install -d -m0755 debian/rbd-mirror/lib/systemd/system
+	install -m0644 systemd/ceph-rbd-mirror at .service debian/rbd-mirror/lib/systemd/system
+	sed -i s./etc/sysconfig/./etc/default/.g debian/rbd-mirror/lib/systemd/system/ceph-rbd-mirror at .service
 
 override_dh_systemd_enable:
 	## Do not enable services to match `dh_installinit --no-start`

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git



More information about the Pkg-ceph-commits mailing list