summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service')
-rw-r--r--meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service b/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service
new file mode 100644
index 0000000..cef90b4
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder-api.service
@@ -0,0 +1,20 @@
1[Unit]
2Description=OpenStack Cinder API
3After=postgresql.service keystone.service rabbitmq-server.service ntp.service
4
5[Service]
6User=%USER%
7Group=%GROUP%
8Type=simple
9WorkingDirectory=%LOCALSTATEDIR%/lib/cinder
10PermissionsStartOnly=true
11ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/log/cinder %LOCALSTATEDIR%/lib/cinder
12ExecStartPre=/bin/chown cinder:cinder %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/lib/cinder
13ExecStartPre=/bin/chown cinder:adm %LOCALSTATEDIR%/log/cinder
14ExecStart=/usr/bin/cinder-api --config-file=%SYSCONFDIR%/cinder/cinder.conf
15Restart=on-failure
16LimitNOFILE=65535
17TimeoutStopSec=15
18
19[Install]
20WantedBy=multi-user.target