--- /dev/null
+description "Cinder api server"
+author "Chuck Short <zulcss@ubuntu.com>"
+
+start on runlevel [2345]
+stop on runlevel [016]
+
+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
+
+exec su -s /bin/sh -c "exec cinder-api --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-api.log" cinder
--- /dev/null
+description "Cinder scheduler server"
+author "Chuck Short <zulcss@ubuntu.com>"
+
+start on runlevel [2345]
+stop on runlevel [016]
+
+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
+
+exec su -s /bin/sh -c "exec cinder-scheduler --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-scheduler.log" cinder
--- /dev/null
+description "Cinder volume server"
+author "Chuck Short <zulcss@ubuntu.com>"
+
+start on runlevel [2345]
+stop on runlevel [016]
+
+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
+
+exec su -s /bin/sh -c "exec cinder-volume --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-volume.log" cinder
./run_tests.sh -N -P || true
endif
+override_dh_installinit:
+ if dpkg-vendor --derives-from ubuntu ; then \
+ for i in *.upstart.in ; do \
+ MYPKG=`echo $i | cut -d. -f1` ; \
+ cp $MYPKG.upstart.in $MYPKG.upstart ; \
+ done ; \
+ fi
+ dh_installinit --error-handler=true
+
# Checkout master repo and create the orig.tar.xz
get-vcs-source:
git remote add upstream git://github.com/openstack/cinder.git || true