]> git.proxmox.com Git - ceph.git/blob - ceph/src/upstart/ceph-mds.conf
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / upstart / ceph-mds.conf
1 description "Ceph MDS"
2
3 start on ceph-mds
4 stop on runlevel [!2345] or stopping ceph-mds-all
5
6 respawn
7 respawn limit 3 1800
8
9 limit nofile 16384 16384
10
11 pre-start script
12 set -e
13 test -x /usr/bin/ceph-mds || { stop; exit 0; }
14 test -d "/var/lib/ceph/mds/${cluster:-ceph}-$id" || { stop; exit 0; }
15
16 install -d -m0770 -o ceph -g ceph /var/run/ceph
17 end script
18
19 instance ${cluster:-ceph}/$id
20 export cluster
21 export id
22
23 # this breaks oneiric
24 #usage "cluster = name of cluster (defaults to 'ceph'); id = mds instance id"
25
26 exec /usr/bin/ceph-mds --cluster="${cluster:-ceph}" -i "$id" -f --setuser ceph --setgroup ceph