~james-page/ubuntu/precise/cinder/trunk

« back to all changes in this revision

Viewing changes to debian/cinder-api.upstart

  • Committer: James Page
  • Author(s): Chuck Short
  • Date: 2012-10-09 08:34:54 UTC
  • Revision ID: james.page@canonical.com-20121009083454-5mlt1zdv67af23fi
Tags: 2012.2-0ubuntu2~cloud0
New bug fix release for the Ubuntu Cloud Archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "Cinder api server"
 
2
author "Chuck Short <zulcss@ubuntu.com>"
 
3
 
 
4
start on runlevel [2345]
 
5
stop on runlevel [016]
 
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 su -s /bin/sh -c "exec cinder-api --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-api.log" cinder