]> git.proxmox.com Git - ceph.git/blame - ceph/src/upstart/ceph-mon-all-starter.conf
bump version to 12.2.12-pve1
[ceph.git] / ceph / src / upstart / ceph-mon-all-starter.conf
CommitLineData
7c673cae
FG
1description "Ceph MON (start all instances)"
2
3start on starting ceph-mon-all
4
5task
6
7script
8 set -e
9 # TODO what's the valid charset for cluster names and mon ids?
10 find -L /var/lib/ceph/mon/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
11 | while read f; do
12 if [ -e "/var/lib/ceph/mon/$f/done" ] && [ -e "/var/lib/ceph/mon/$f/upstart" ] && [ ! -e "/var/lib/ceph/mon/$f/sysvinit" ]; then
13 cluster="${f%%-*}"
14 id="${f#*-}"
15
16 initctl emit ceph-mon cluster="$cluster" id="$id"
17 fi
18 done
19end script