mirror of
https://github.com/ceph/ceph
synced 2025-01-25 12:34:46 +00:00
58d47347bc
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
19 lines
545 B
Plaintext
19 lines
545 B
Plaintext
description "Ceph rbd-mirror (task to start all instances)"
|
|
|
|
start on starting ceph-rbd-mirror-all
|
|
|
|
task
|
|
|
|
script
|
|
set -e
|
|
# TODO what's the valid charset for cluster names and daemon ids?
|
|
find -L /var/lib/ceph/rbd-mirror/ -mindepth 1 -maxdepth 1 -regextype posix-egrep -regex '.*/[A-Za-z0-9]+-[A-Za-z0-9._-]+' -printf '%P\n' \
|
|
| while read f; do
|
|
if [ -e "/var/lib/ceph/rbd-mirror/$f/done" ]; then
|
|
cluster="${f%%-*}"
|
|
id="${f#*-}"
|
|
initctl emit ceph-rbd-mirror cluster="$cluster" id="$id"
|
|
fi
|
|
done
|
|
end script
|