From 283c3ce36b39cb0c7398e4ba67e5236377408994 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 9 Oct 2012 09:15:50 +0000 Subject: [PATCH] Re-added ubuntu upstart files using the .in extension. Rewritten-From: 109e582a8712368c71a37f4d9f8c5a7b5b1b4ea4 --- xenial/debian/cinder-api.upstart.in | 17 +++++++++++++++++ xenial/debian/cinder-scheduler.upstart.in | 17 +++++++++++++++++ xenial/debian/cinder-volume.upstart.in | 17 +++++++++++++++++ xenial/debian/rules | 9 +++++++++ 4 files changed, 60 insertions(+) create mode 100644 xenial/debian/cinder-api.upstart.in create mode 100644 xenial/debian/cinder-scheduler.upstart.in create mode 100644 xenial/debian/cinder-volume.upstart.in diff --git a/xenial/debian/cinder-api.upstart.in b/xenial/debian/cinder-api.upstart.in new file mode 100644 index 000000000..1fbeb327a --- /dev/null +++ b/xenial/debian/cinder-api.upstart.in @@ -0,0 +1,17 @@ +description "Cinder api server" +author "Chuck Short " + +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 diff --git a/xenial/debian/cinder-scheduler.upstart.in b/xenial/debian/cinder-scheduler.upstart.in new file mode 100644 index 000000000..d03cb4e21 --- /dev/null +++ b/xenial/debian/cinder-scheduler.upstart.in @@ -0,0 +1,17 @@ +description "Cinder scheduler server" +author "Chuck Short " + +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 diff --git a/xenial/debian/cinder-volume.upstart.in b/xenial/debian/cinder-volume.upstart.in new file mode 100644 index 000000000..9544ec7c7 --- /dev/null +++ b/xenial/debian/cinder-volume.upstart.in @@ -0,0 +1,17 @@ +description "Cinder volume server" +author "Chuck Short " + +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 diff --git a/xenial/debian/rules b/xenial/debian/rules index 2076c6de0..50db4c100 100755 --- a/xenial/debian/rules +++ b/xenial/debian/rules @@ -14,6 +14,15 @@ override_dh_auto_test: ./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 -- 2.45.2