Files
charm-glance/templates/git/glance-api.init.in.template
Corey Bryant 8b49c92fc2 Add systemd init support for deploy from source
systemd is used instead of upstart by default since Ubuntu 15.10
(Wily).  This adds systemd init file support for glance services
that are deployed from source.

Change-Id: I4117e9cbe5a30ed19ef2976d4e7160b82c09d4d3
2016-06-08 18:41:29 +00:00

22 lines
678 B
Bash

#!/bin/sh
### BEGIN INIT INFO
# Provides: glance-api
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop: $remote_fs
# Should-Start: postgresql mysql keystone ntp rabbitmq-server
# Should-Stop: postgresql mysql keystone ntp rabbitmq-server
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Glance API server
# Description: Frontend Glance API server
### END INIT INFO
# Author: Julien Danjou <acid@debian.org>
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="OpenStack Image Service API"
PROJECT_NAME=glance
NAME=${PROJECT_NAME}-api
CONFIG_FILE=/etc/${PROJECT_NAME}/${NAME}.conf
DAEMON={{ daemon_path }}