1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/bin/sh
### BEGIN INIT INFO
# Provides: cinder-api
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop: $remote_fs
# Should-Start: postgresql mysql keystone rabbitmq-server ntp
# Should-Stop: postgresql mysql keystone rabbitmq-server ntp
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Cinder Api
# Description: Provides EBS like storage for your
# virtual machine instances
### END INIT INFO
# Author: Thomas Goirand <zigo@debian.org>
DESC="OpenStack Cinder Api (cinder-api)"
PROJECT_NAME=cinder
NAME=${PROJECT_NAME}-api
#DAEMON=/usr/bin/uwsgi_python3
#DAEMON_ARGS="--ini /etc/cinder/cinder-uwsgi.ini"
#NO_OPENSTACK_CONFIG_FILE_DAEMON_ARG=yes
#NO_OPENSTACK_LOGFILE_DAEMON_ARG=yes
#USE_SYSLOG=no
UWSGI_PORT=8776
UWSGI_INI_PATH=/etc/cinder/cinder-api-uwsgi.ini
UWSGI_INI_APP=/usr/lib/python3/dist-packages/cinder/wsgi/api.py
export OS_OSLO_MESSAGING_RABBIT_PROCESSNAME=cinder-api
|