1 description "Ceph rbd mirror"
3 start on ceph-rbd-mirror
4 stop on runlevel [!2345] or stopping ceph-rbd-mirror-all
9 limit nofile 8096 65536
13 test -x /usr/bin/rbd-mirror || { stop; exit 0; }
14 test -d "/var/lib/ceph/rbd-mirror/${cluster:-ceph}-$id" || { stop; exit 0; }
16 install -d -m0770 -o ceph -g ceph /var/run/ceph
19 instance ${cluster:-ceph}/$id
24 #usage "cluster = name of cluster (defaults to 'ceph'); id = instance id"
26 exec /usr/bin/rbd-mirror --cluster="${cluster:-ceph}" --id "$id" -f --setuser ceph --setgroup ceph