9803fbc934
systemd is used instead of upstart by default since Ubuntu 15.10 (Wily). This adds systemd init file support for cinder services that are deployed from source. Change-Id: I476074659c03d44a78dd607e7a91c87de0734562
23 lines
781 B
Bash
23 lines
781 B
Bash
#!/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: Julien Danjou <acid@debian.org>, Thomas Goirand <zigo@debian.org>
|
|
|
|
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
|
DESC="OpenStack Cinder Api"
|
|
PROJECT_NAME=cinder
|
|
NAME=${PROJECT_NAME}-api
|
|
DAEMON={{ daemon_path }}
|