author "Chuck Short <zulcss@ubuntu.com>"
start on runlevel [2345]
-stop on runlevel [016]
+stop on runlevel [!2345]
chdir /var/run
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
author "Chuck Short <zulcss@ubuntu.com>"
start on runlevel [2345]
-stop on runlevel [016]
+stop on runlevel [!2345]
chdir /var/run
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
author "Chuck Short <zulcss@ubuntu.com>"
start on runlevel [2345]
-stop on runlevel [016]
+stop on runlevel [!2345]
chdir /var/run
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