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
22 lines
701 B
Bash
22 lines
701 B
Bash
#!/bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides: cinder-backup
|
|
# 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 Backup
|
|
# Description: Provides Cinder Backup
|
|
### END INIT INFO
|
|
|
|
# Author: 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 Backup"
|
|
PROJECT_NAME=cinder
|
|
NAME=${PROJECT_NAME}-backup
|
|
DAEMON={{ daemon_path }}
|