summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-11-16 16:32:23 -0800
committerSage Weil <sage@inktank.com>2012-11-16 17:28:14 -0800
commitff0a44bb81708ba704c2d43e61d84332f9658211 (patch)
tree1f356d2079a61a5dd25f551493a6297749b7a39d
parentbe11c317bfefcdc97234c9164f65bacf2c1e4fed (diff)
downloadceph-ff0a44bb81708ba704c2d43e61d84332f9658211.tar.gz
upstart: make ceph-osd-all, ceph jobs
This will let you start/stop all daemons. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/Makefile.am2
-rw-r--r--src/upstart/ceph-mds-all-starter.conf2
-rw-r--r--src/upstart/ceph-mds-all.conf4
-rw-r--r--src/upstart/ceph-mon-all-starter.conf2
-rw-r--r--src/upstart/ceph-mon-all.conf4
-rw-r--r--src/upstart/ceph-osd-all.conf4
-rw-r--r--src/upstart/ceph-osd.conf2
-rw-r--r--src/upstart/ceph.conf4
-rw-r--r--src/upstart/radosgw-all-starter.conf2
-rw-r--r--src/upstart/radosgw-all.conf4
10 files changed, 20 insertions, 10 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 9ea28ee2387..cfb1140783e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1067,11 +1067,13 @@ EXTRA_DIST += \
$(ceph_tool_gui_DATA) \
$(srcdir)/test/encoding/readable.sh \
$(srcdir)/test/encoding/check-generated.sh \
+ $(srcdir)/upstart/ceph.conf \
$(srcdir)/upstart/ceph-mon.conf \
$(srcdir)/upstart/ceph-mon-all.conf \
$(srcdir)/upstart/ceph-mon-all-starter.conf \
$(srcdir)/upstart/ceph-create-keys.conf \
$(srcdir)/upstart/ceph-osd.conf \
+ $(srcdir)/upstart/ceph-osd-all.conf \
$(srcdir)/upstart/ceph-hotplug.conf \
$(srcdir)/upstart/ceph-mds.conf \
$(srcdir)/upstart/ceph-mds-all.conf \
diff --git a/src/upstart/ceph-mds-all-starter.conf b/src/upstart/ceph-mds-all-starter.conf
index 2748f35c93a..fe7e2bd32ad 100644
--- a/src/upstart/ceph-mds-all-starter.conf
+++ b/src/upstart/ceph-mds-all-starter.conf
@@ -1,7 +1,7 @@
description "Ceph MDS (task to start all instances)"
start on starting ceph-mds-all
-stop on runlevel [!2345]
+stop on runlevel [!2345] or stopping ceph-mds-all
task
diff --git a/src/upstart/ceph-mds-all.conf b/src/upstart/ceph-mds-all.conf
index 0b58f5f8a60..c9da72ec023 100644
--- a/src/upstart/ceph-mds-all.conf
+++ b/src/upstart/ceph-mds-all.conf
@@ -1,4 +1,4 @@
description "Ceph MDS (all instances)"
-start on (local-filesystems and net-device-up IFACE!=lo)
-stop on runlevel [!2345]
+start on starting ceph
+stop on stopping ceph
diff --git a/src/upstart/ceph-mon-all-starter.conf b/src/upstart/ceph-mon-all-starter.conf
index f7188cb7405..7101a8acca9 100644
--- a/src/upstart/ceph-mon-all-starter.conf
+++ b/src/upstart/ceph-mon-all-starter.conf
@@ -1,7 +1,7 @@
description "Ceph MON (start all instances)"
start on starting ceph-mon-all
-stop on runlevel [!2345]
+stop on runlevel [!2345] or stopping ceph-mon-all
task
diff --git a/src/upstart/ceph-mon-all.conf b/src/upstart/ceph-mon-all.conf
index 006f2f20745..10c17eab689 100644
--- a/src/upstart/ceph-mon-all.conf
+++ b/src/upstart/ceph-mon-all.conf
@@ -1,4 +1,4 @@
description "Ceph monitor (all instances)"
-start on (local-filesystems and net-device-up IFACE!=lo)
-stop on runlevel [!2345]
+start on starting ceph
+stop on runlevel [!2345] or stopping ceph
diff --git a/src/upstart/ceph-osd-all.conf b/src/upstart/ceph-osd-all.conf
new file mode 100644
index 00000000000..eb379c3d094
--- /dev/null
+++ b/src/upstart/ceph-osd-all.conf
@@ -0,0 +1,4 @@
+description "Ceph OSD (all instances)"
+
+start on starting ceph
+stop on runlevel [!2345] or stopping ceph
diff --git a/src/upstart/ceph-osd.conf b/src/upstart/ceph-osd.conf
index 9bbb91cb6a5..5f6868769f6 100644
--- a/src/upstart/ceph-osd.conf
+++ b/src/upstart/ceph-osd.conf
@@ -1,7 +1,7 @@
description "Ceph OSD"
start on ceph-osd
-stop on runlevel [!2345]
+stop on runlevel [!2345] or stopping ceph-osd-all
respawn
respawn limit 5 30
diff --git a/src/upstart/ceph.conf b/src/upstart/ceph.conf
new file mode 100644
index 00000000000..d129defad7a
--- /dev/null
+++ b/src/upstart/ceph.conf
@@ -0,0 +1,4 @@
+description "Ceph"
+
+start on (local-filesystems and net-device-up IFACE!=lo)
+stop on runlevel [!2345]
diff --git a/src/upstart/radosgw-all-starter.conf b/src/upstart/radosgw-all-starter.conf
index d3cabcf4ee3..b9357a38fdf 100644
--- a/src/upstart/radosgw-all-starter.conf
+++ b/src/upstart/radosgw-all-starter.conf
@@ -1,7 +1,7 @@
description "Ceph radosgw (task to start all instances)"
start on starting radosgw-all
-stop on runlevel [!2345]
+stop on runlevel [!2345] or stopping radosgw-all
task
diff --git a/src/upstart/radosgw-all.conf b/src/upstart/radosgw-all.conf
index 2f2e27f9d51..af2b84d24f8 100644
--- a/src/upstart/radosgw-all.conf
+++ b/src/upstart/radosgw-all.conf
@@ -1,4 +1,4 @@
description "Ceph radosgw (all instances)"
-start on (local-filesystems and net-device-up IFACE!=lo)
-stop on runlevel [!2345]
+start on starting ceph
+stop on runlevel [!2345] or stopping ceph