]> review.fuel-infra Code Review - openstack-build/cinder-build.git/blob - debian/cinder-api.upstart
Add debian files
[openstack-build/cinder-build.git] / debian / cinder-api.upstart
1 description "Cinder api server"
2 author "Chuck Short <zulcss@ubuntu.com>"
3
4 start on runlevel [2345]
5 stop on runlevel [!2345]
6
7 chdir /var/run
8
9 pre-start script
10     mkdir -p /var/run/cinder
11     chown cinder:cinder /var/run/cinder
12
13     mkdir -p /var/lock/cinder
14     chown cinder:root /var/lock/cinder
15 end script
16
17 exec start-stop-daemon --start --chuid cinder --exec /usr/bin/cinder-api \
18      -- --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-api.log