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