diff options
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.service | 20 |
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] | ||
| 2 | Description=OpenStack Cinder API | ||
| 3 | After=postgresql.service keystone.service rabbitmq-server.service ntp.service | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | User=%USER% | ||
| 7 | Group=%GROUP% | ||
| 8 | Type=simple | ||
| 9 | WorkingDirectory=%LOCALSTATEDIR%/lib/cinder | ||
| 10 | PermissionsStartOnly=true | ||
| 11 | ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/log/cinder %LOCALSTATEDIR%/lib/cinder | ||
| 12 | ExecStartPre=/bin/chown cinder:cinder %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/lib/cinder | ||
| 13 | ExecStartPre=/bin/chown cinder:adm %LOCALSTATEDIR%/log/cinder | ||
| 14 | ExecStart=/usr/bin/cinder-api --config-file=%SYSCONFDIR%/cinder/cinder.conf | ||
| 15 | Restart=on-failure | ||
| 16 | LimitNOFILE=65535 | ||
| 17 | TimeoutStopSec=15 | ||
| 18 | |||
| 19 | [Install] | ||
| 20 | WantedBy=multi-user.target | ||
