From: Thomas Goirand Date: Wed, 17 Apr 2013 08:45:37 +0000 (+0800) Subject: Updated upstart scripts. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ed536cea3e7c265660b8adf4a20ffb5fedec6076;p=openstack-build%2Fcinder-build.git Updated upstart scripts. Rewritten-From: 27b8e7267f5f47c07366eff0982689d34a306ff6 --- diff --git a/xenial/debian/cinder-api.upstart.in b/xenial/debian/cinder-api.upstart.in index 1fbeb327a..2d6d07154 100644 --- a/xenial/debian/cinder-api.upstart.in +++ b/xenial/debian/cinder-api.upstart.in @@ -2,7 +2,7 @@ description "Cinder api server" author "Chuck Short " start on runlevel [2345] -stop on runlevel [016] +stop on runlevel [!2345] chdir /var/run @@ -14,4 +14,5 @@ pre-start script 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 +exec start-stop-daemon --start --chuid cinder --exec /usr/bin/cinder-api \ + -- --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-api.log diff --git a/xenial/debian/cinder-scheduler.upstart.in b/xenial/debian/cinder-scheduler.upstart.in index d03cb4e21..c321041e5 100644 --- a/xenial/debian/cinder-scheduler.upstart.in +++ b/xenial/debian/cinder-scheduler.upstart.in @@ -2,7 +2,7 @@ description "Cinder scheduler server" author "Chuck Short " start on runlevel [2345] -stop on runlevel [016] +stop on runlevel [!2345] chdir /var/run @@ -14,4 +14,5 @@ pre-start script 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 +exec start-stop-daemon --start --chuid cinder --exec /usr/bin/cinder-scheduler \ + -- --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-scheduler.log diff --git a/xenial/debian/cinder-volume.upstart.in b/xenial/debian/cinder-volume.upstart.in index 9544ec7c7..dd3295adf 100644 --- a/xenial/debian/cinder-volume.upstart.in +++ b/xenial/debian/cinder-volume.upstart.in @@ -2,7 +2,7 @@ description "Cinder volume server" author "Chuck Short " start on runlevel [2345] -stop on runlevel [016] +stop on runlevel [!2345] chdir /var/run @@ -14,4 +14,5 @@ pre-start script 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 +exec start-stop-daemon --start --chuid cinder --exec /usr/bin/cinder-volume \ + -- --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-volume.log