]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
upstart: Make instance jobs export their cluster and id variables.
authorTommi Virtanen <tv@inktank.com>
Thu, 30 Aug 2012 14:11:09 +0000 (10:11 -0400)
committerTommi Virtanen <tv@inktank.com>
Wed, 5 Sep 2012 18:28:04 +0000 (11:28 -0700)
This allows other jobs listening to Upstart "started ceph-mon" events
to see what instance started.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/upstart/ceph-mds.conf
src/upstart/ceph-mon.conf
src/upstart/ceph-osd.conf
src/upstart/radosgw.conf

index 56aa5bce6b520b894e258b64f195c529dd06df28..0d572798417445925569097378de29618d53a29d 100644 (file)
@@ -15,6 +15,8 @@ pre-start script
 end script
 
 instance ${cluster:-ceph}/$id
+export cluster
+export id
 
 # this breaks oneiric
 #usage "cluster = name of cluster (defaults to 'ceph'); id = mds instance id"
index b38eff309f02b3c5bbe1f5c979f12ac9b92d6761..2cf7bfa5b2ea53c055f1f315a5f09f5c73a3407a 100644 (file)
@@ -15,6 +15,8 @@ pre-start script
 end script
 
 instance ${cluster:-ceph}/$id
+export cluster
+export id
 
 # this breaks oneiric
 #usage "cluster = name of cluster (defaults to 'ceph'); id = monitor instance id"
index cff5f431d3000b4804b91f65108d13bd9e4dcf67..7a976c2397a427f42ff858bda789ca5f1e383eb9 100644 (file)
@@ -30,5 +30,7 @@ pre-start script
 end script
 
 instance ${cluster:-ceph}/$id
+export cluster
+export id
 
 exec /usr/bin/ceph-osd --cluster="${cluster:-ceph}" -i "$id" -f
index d809f8861e11ce9059ed69c3127fe394834a7bca..deaa139e8cb8b62541c7b6d707065eb9d663c6eb 100644 (file)
@@ -15,6 +15,8 @@ pre-start script
 end script
 
 instance ${cluster:-ceph}/$id
+export cluster
+export id
 
 # this breaks oneiric
 #usage "cluster = name of cluster (defaults to 'ceph'); id = mds instance id"