summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-30 13:31:35 -0700
committerSage Weil <sage@inktank.com>2013-07-30 13:31:35 -0700
commite747fa8e32021b6fbc85384128133cf5289bcfa8 (patch)
tree6b3e832e4d352a7fd235a66f2f804c46b18dde5a
parent3f5352ac670f3c7477db588ba58229f04d89707c (diff)
downloadceph-e747fa8e32021b6fbc85384128133cf5289bcfa8.tar.gz
Revert "Use dh_installinit to install upstart job files"
This reverts commit 251a6a498d07f7873b0e15b0ca2caf7f12c48f04. This includes /etc/init.d/radosgw in the ceph package, which makes it conflict with radosgw.
l---------debian/ceph-mds.ceph-mds-all-starter.upstart1
l---------debian/ceph-mds.ceph-mds-all.upstart1
l---------debian/ceph-mds.ceph-mds.upstart1
l---------debian/ceph.ceph-all.upstart1
l---------debian/ceph.ceph-create-keys.upstart1
l---------debian/ceph.ceph-mon-all-starter.upstart1
l---------debian/ceph.ceph-mon-all.upstart1
l---------debian/ceph.ceph-mon.upstart1
l---------debian/ceph.ceph-osd-all-starter.upstart1
l---------debian/ceph.ceph-osd-all.upstart1
l---------debian/ceph.ceph-osd.upstart1
l---------debian/radosgw.radowgw-all-starter.upstart1
l---------debian/radosgw.radowgw-all.upstart1
l---------debian/radosgw.radowgw.upstart1
-rwxr-xr-xdebian/rules28
15 files changed, 9 insertions, 33 deletions
diff --git a/debian/ceph-mds.ceph-mds-all-starter.upstart b/debian/ceph-mds.ceph-mds-all-starter.upstart
deleted file mode 120000
index 10f99a68f77..00000000000
--- a/debian/ceph-mds.ceph-mds-all-starter.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-mds-all-starter.conf \ No newline at end of file
diff --git a/debian/ceph-mds.ceph-mds-all.upstart b/debian/ceph-mds.ceph-mds-all.upstart
deleted file mode 120000
index e8247337326..00000000000
--- a/debian/ceph-mds.ceph-mds-all.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-mds-all.conf \ No newline at end of file
diff --git a/debian/ceph-mds.ceph-mds.upstart b/debian/ceph-mds.ceph-mds.upstart
deleted file mode 120000
index 8b3b09676c4..00000000000
--- a/debian/ceph-mds.ceph-mds.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-mds.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-all.upstart b/debian/ceph.ceph-all.upstart
deleted file mode 120000
index 60726f313f3..00000000000
--- a/debian/ceph.ceph-all.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-all.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-create-keys.upstart b/debian/ceph.ceph-create-keys.upstart
deleted file mode 120000
index d8d704f2361..00000000000
--- a/debian/ceph.ceph-create-keys.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-create-keys.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-mon-all-starter.upstart b/debian/ceph.ceph-mon-all-starter.upstart
deleted file mode 120000
index d7452d091ba..00000000000
--- a/debian/ceph.ceph-mon-all-starter.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-mon-all-starter.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-mon-all.upstart b/debian/ceph.ceph-mon-all.upstart
deleted file mode 120000
index 8aec0a0887c..00000000000
--- a/debian/ceph.ceph-mon-all.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-mon-all.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-mon.upstart b/debian/ceph.ceph-mon.upstart
deleted file mode 120000
index f953fd09668..00000000000
--- a/debian/ceph.ceph-mon.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-mon.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-osd-all-starter.upstart b/debian/ceph.ceph-osd-all-starter.upstart
deleted file mode 120000
index e8174389a5e..00000000000
--- a/debian/ceph.ceph-osd-all-starter.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-osd-all-starter.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-osd-all.upstart b/debian/ceph.ceph-osd-all.upstart
deleted file mode 120000
index ddf22445958..00000000000
--- a/debian/ceph.ceph-osd-all.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-osd-all.conf \ No newline at end of file
diff --git a/debian/ceph.ceph-osd.upstart b/debian/ceph.ceph-osd.upstart
deleted file mode 120000
index 0a23a0aaf7b..00000000000
--- a/debian/ceph.ceph-osd.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/ceph-osd.conf \ No newline at end of file
diff --git a/debian/radosgw.radowgw-all-starter.upstart b/debian/radosgw.radowgw-all-starter.upstart
deleted file mode 120000
index 145204eeaac..00000000000
--- a/debian/radosgw.radowgw-all-starter.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/radosgw-all-starter.conf \ No newline at end of file
diff --git a/debian/radosgw.radowgw-all.upstart b/debian/radosgw.radowgw-all.upstart
deleted file mode 120000
index 5312a654ddf..00000000000
--- a/debian/radosgw.radowgw-all.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/radosgw-all.conf \ No newline at end of file
diff --git a/debian/radosgw.radowgw.upstart b/debian/radosgw.radowgw.upstart
deleted file mode 120000
index 6faf46ed540..00000000000
--- a/debian/radosgw.radowgw.upstart
+++ /dev/null
@@ -1 +0,0 @@
-../src/upstart/radosgw.conf \ No newline at end of file
diff --git a/debian/rules b/debian/rules
index dc0710a841f..c32c3e280b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -114,25 +114,15 @@ binary-arch: build install
dh_installexamples -a
dh_install -a --sourcedir=$(DESTDIR) --list-missing
dh_installlogrotate -a
- #upstart job files for binary package ceph
- dh_installinit --no-start --name=ceph-all
- dh_installinit --no-start --name=ceph-create-keys
- dh_installinit --no-start --name=ceph-mon-all-starter
- dh_installinit --no-start --name=ceph-mon-all
- dh_installinit --no-start --name=ceph-mon
- dh_installinit --no-start --name=ceph-osd-all-starter
- dh_installinit --no-start --name=ceph-osd-all
- dh_installinit --no-start --name=ceph-osd
- #upstart job files for binary package ceph-mds
- dh_installinit --no-start --name=ceph-mds-all
- dh_installinit --no-start --name=ceph-mds-all-starter
- dh_installinit --no-start --name=ceph-mds
- #upstart job files for binary package radowgw
- dh_installinit --no-start --name=radosgw-all-starter
- dh_installinit --no-start --name=radosgw-all
- dh_installinit --no-start --name=radosgw
- #all other initscripts
- dh_installinit --no-start
+ dh_installinit -a --no-start
+ # dh_installinit is only set up to handle one upstart script
+ # per package, so do this ourselves
+ install -d -m0755 debian/ceph/etc/init
+ install -m0644 src/upstart/ceph*.conf debian/ceph/etc/init
+ install -d -m0755 debian/ceph-mds/etc/init
+ 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
dh_installman -a
dh_lintian -a
dh_link -a