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
759 B
Bash
23 lines
759 B
Bash
#!/bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides: cinder-volume
|
|
# 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 Volume
|
|
# Description: Provides EBS like storage for your
|
|
# virtual machine instances
|
|
### END INIT INFO
|
|
|
|
# Author: Julien Danjou <acid@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 Volume"
|
|
PROJECT_NAME=cinder
|
|
NAME=${PROJECT_NAME}-volume
|
|
DAEMON={{ daemon_path }}
|