X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fupstart%2Fradosgw.conf;fp=src%2Fceph%2Fsrc%2Fupstart%2Fradosgw.conf;h=828c314d2386d9bf60eaf2b7fe5579c73aae62b5;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/upstart/radosgw.conf b/src/ceph/src/upstart/radosgw.conf new file mode 100644 index 0000000..828c314 --- /dev/null +++ b/src/ceph/src/upstart/radosgw.conf @@ -0,0 +1,26 @@ +description "Ceph radosgw" + +start on radosgw +stop on runlevel [!2345] or stopping radosgw-all + +respawn +respawn limit 5 30 + +limit nofile 8096 65536 + +pre-start script + set -e + test -x /usr/bin/radosgw || { stop; exit 0; } + test -d "/var/lib/ceph/radosgw/${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 = mds instance id" + +exec /usr/bin/radosgw --cluster="${cluster:-ceph}" --id "$id" -f --setuser ceph --setgroup ceph