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
|
#!/bin/sh
### BEGIN INIT INFO
# Provides: gnocchi-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: gnocchi Api
# Description: gnocchi-api
### END INIT INFO
# Author: Thomas Goirand <zigo@debian.org>
DESC="OpenStack Gnocchi Api"
PROJECT_NAME=gnocchi
NAME=${PROJECT_NAME}-api
UWSGI_PORT=8041
UWSGI_INI_PATH=/etc/gnocchi/gnocchi-api-uwsgi.ini
UWSGI_INI_APP=/usr/lib/python3/dist-packages/gnocchi/rest/wsgi.py
# This allows having multiple configuration files, so that
# gnocchi-api and gnocchi-metricd have different coordination
# and incoming saks configuration.
PYARGV="--config-file=/etc/gnocchi/gnocchi.conf"
if [ -r /etc/gnocchi/gnocchi-api.conf ] ; then
PYARGV="${PYARGV} --config-file=/etc/gnocchi/gnocchi-api.conf"
fi
|