X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fupstart%2Fceph-osd.conf;fp=src%2Fceph%2Fsrc%2Fupstart%2Fceph-osd.conf;h=60b7b829c43382e9e8f457a3deed41d14c9bdf59;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/upstart/ceph-osd.conf b/src/ceph/src/upstart/ceph-osd.conf new file mode 100644 index 0000000..60b7b82 --- /dev/null +++ b/src/ceph/src/upstart/ceph-osd.conf @@ -0,0 +1,29 @@ +description "Ceph OSD" + +start on ceph-osd +stop on runlevel [!2345] or stopping ceph-osd-all + +respawn +respawn limit 3 1800 + +limit nofile 327680 327680 + +pre-start script + set -e + test -x /usr/bin/ceph-osd || { stop; exit 0; } + test -d "/var/lib/ceph/osd/${cluster:-ceph}-$id" || { stop; exit 0; } + + install -d -m0770 -o ceph -g ceph /var/run/ceph + + /usr/lib/ceph/ceph-osd-prestart.sh --cluster="${cluster:-ceph}" -i "$id" +end script + +instance ${cluster:-ceph}/$id +export cluster +export id + +script + test -f /etc/default/ceph && . /etc/default/ceph + export TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES + exec /usr/bin/ceph-osd --cluster="${cluster:-ceph}" -i "$id" -f --setuser ceph --setgroup ceph +end script