X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fupstart%2Fceph-mgr.conf;fp=src%2Fceph%2Fsrc%2Fupstart%2Fceph-mgr.conf;h=11c36a5673b4c08c1a16b3f85c884e804d8ccc5e;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/upstart/ceph-mgr.conf b/src/ceph/src/upstart/ceph-mgr.conf new file mode 100644 index 0000000..11c36a5 --- /dev/null +++ b/src/ceph/src/upstart/ceph-mgr.conf @@ -0,0 +1,26 @@ +description "Ceph Manager" + +start on ceph-mgr +stop on runlevel [!2345] or stopping ceph-mgr-all + +respawn +respawn limit 3 1800 + +limit nofile 16384 16384 + +pre-start script + set -e + test -x /usr/bin/ceph-mgr || { stop; exit 0; } + test -d "/var/lib/ceph/mgr/${cluster:-ceph}-$id" || { stop; exit 0; } + + install -d -m0770 -o ceph -g ceph /var/run/ceph +end script + +instance ${cluster:-ceph}/$id +export cluster +export id + +# this breaks oneiric +#usage "cluster = name of cluster (defaults to 'ceph'); id = mgr instance id" + +exec /usr/bin/ceph-mgr --cluster="${cluster:-ceph}" -i "$id" -f --setuser ceph --setgroup ceph