Added cinder-backup service (not enabled by default)

cinder-backup service has been added to cinder. This fix adds the
cinder-backup service. To enable this service, c-bak must be added
to ENABLED_SERVICES in the users localrc. To actually perform a
backup the user must enable swift or another service.

Change-Id: If4ef8d78081be572987e7c38c76ff57e82b4f744
This commit is contained in:
Stephen Mulcahy 2013-02-21 11:20:58 +00:00
parent 3bfc90df4c
commit 67068ef415

View File

@ -361,6 +361,7 @@ function start_cinder() {
screen_it c-api "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-api --config-file $CINDER_CONF" screen_it c-api "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-api --config-file $CINDER_CONF"
screen_it c-vol "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-volume --config-file $CINDER_CONF" screen_it c-vol "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-volume --config-file $CINDER_CONF"
screen_it c-sch "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-scheduler --config-file $CINDER_CONF" screen_it c-sch "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-scheduler --config-file $CINDER_CONF"
screen_it c-bak "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-backup --config-file $CINDER_CONF"
# Start proxies if enabled # Start proxies if enabled
if is_service_enabled c-api && is_service_enabled tls-proxy; then if is_service_enabled c-api && is_service_enabled tls-proxy; then
@ -371,7 +372,7 @@ function start_cinder() {
# stop_cinder() - Stop running processes # stop_cinder() - Stop running processes
function stop_cinder() { function stop_cinder() {
# Kill the cinder screen windows # Kill the cinder screen windows
for serv in c-api c-sch c-vol; do for serv in c-api c-bak c-sch c-vol; do
screen -S $SCREEN_NAME -p $serv -X kill screen -S $SCREEN_NAME -p $serv -X kill
done done