~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/upstart/radosgw-all-starter.conf

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "Ceph radosgw (task to start all instances)"
 
2
 
 
3
start on starting radosgw-all
 
4
 
 
5
task
 
6
 
 
7
script
 
8
  set -e
 
9
  # TODO what's the valid charset for cluster names and daemon ids?
 
10
  find /var/lib/ceph/radosgw/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[a-z0-9]+-[a-z0-9\.\-\_]+' -printf '%P\n' \
 
11
  | while read f; do
 
12
    if [ -e "/var/lib/ceph/radosgw/$f/done" ]; then
 
13
        cluster="${f%%-*}"
 
14
        id="${f#*-}"
 
15
        initctl emit radosgw cluster="$cluster" id="$id"
 
16
    fi
 
17
  done
 
18
end script