]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
recovery vmware init-files on ubuntu 63/4763/1
authorIgor Gajsin <igajsin@mirantis.com>
Thu, 19 Mar 2015 09:40:24 +0000 (12:40 +0300)
committerIgor Gajsin <igajsin@mirantis.com>
Thu, 19 Mar 2015 11:06:45 +0000 (14:06 +0300)
Init files for vmware was merged in https://review.fuel-infra.org/#/c/4509/
But after https://review.fuel-infra.org/#/c/4591/ they was lost (only for
Ubuntu). Revert this files back.

Change-Id: Ia1866ad6005563a8c54042ab9e1904d5ee88a910

trusty/debian/cinder-volume-vmware.conf [new file with mode: 0644]
trusty/debian/cinder-volume.dirs
trusty/debian/cinder-volume.install

diff --git a/trusty/debian/cinder-volume-vmware.conf b/trusty/debian/cinder-volume-vmware.conf
new file mode 100644 (file)
index 0000000..2e531c6
--- /dev/null
@@ -0,0 +1,21 @@
+# vim: set ft=upstart et ts=2:
+description "Cinder volume service for vmware"
+author "Igor Gajsin igajsin@mirantis.com"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+chdir /var/run
+
+pre-start script
+    mkdir -p /var/run/cinder
+    chown cinder:cinder /var/run/cinder
+
+    mkdir -p /var/lock/cinder
+    chown cinder:root /var/lock/cinder
+end script
+
+script
+  [ -r /etc/default/$UPSTART_JOB ] &&. /etc/default/$UPSTART_JOB
+  start-stop-daemon --start --chuid cinder --exec /usr/bin/cinder-volume -- $CINDER_VOLUME_OPTS
+end script
index 76991390610ff8bbe5c4a9eb72c4db40920ee144..8ef65c6b28a59bc3e011d6229456c52d3862906a 100644 (file)
@@ -1 +1,2 @@
 var/lib/cinder/volumes
+usr/share/cinder
index bbaf426b33a3d21842f07d5119ccf71190d7e715..cbe16b457b5cde7af23407f533344d81d2f5e597 100644 (file)
@@ -1,4 +1,5 @@
 debian/cinder_tgt.conf etc/tgt/conf.d
+debian/cinder-volume-vmware.conf usr/share/cinder
 etc/cinder/rootwrap.d/volume.filters /etc/cinder/rootwrap.d
 usr/bin/cinder-volume
 usr/bin/cinder-volume-usage-audit