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=27b8e7267f5f47c07366eff0982689d34a306ff6;p=openstack-build%2Fcinder-build.git Updated upstart scripts. --- diff --git a/debian/cinder-api.upstart.in b/debian/cinder-api.upstart.in index 1fbeb327a..2d6d07154 100644 --- a/debian/cinder-api.upstart.in +++ b/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/debian/cinder-scheduler.upstart.in b/debian/cinder-scheduler.upstart.in index d03cb4e21..c321041e5 100644 --- a/debian/cinder-scheduler.upstart.in +++ b/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/debian/cinder-volume.upstart.in b/debian/cinder-volume.upstart.in index 9544ec7c7..dd3295adf 100644 --- a/debian/cinder-volume.upstart.in +++ b/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