
Rename files and folders in mtce-compute, mtce-control, and mtce-storage. As well update packages' names in bsp-files/ filter_out_* scripts accordingly. Story: 2004079 Task: 27485 Change-Id: Ic1e9bd4bb8d72f30ddcc2a2bfc602a1a34e583da Signed-off-by: Yong Hu <yong.hu@intel.com>
75 lines
1.5 KiB
Bash
75 lines
1.5 KiB
Bash
#! /bin/bash
|
|
#
|
|
# Copyright (c) 2015-2017 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
### CONFIG_START
|
|
#
|
|
# Timeout: 300
|
|
#
|
|
### CONFIG_END
|
|
|
|
# Platform paths and flags
|
|
. /usr/bin/tsconfig
|
|
|
|
# Linux Standard Base (LSB) Error Codes
|
|
SUCCESS=0
|
|
GENERIC_ERROR=1
|
|
|
|
NOVA_GOENABLED_TAG=${NOVA_GOENABLED_TAG:-"NOVA_GOENABLED"}
|
|
|
|
log()
|
|
{
|
|
logger -p local1.info -t ${NOVA_GOENABLED_TAG} $@
|
|
}
|
|
|
|
NOVA_RUN="/var/run/nova"
|
|
NOVA_INIT_FAILED="${NOVA_RUN}/.nova_init_failed"
|
|
NOVA_COMPUTE_ENABLED="${NOVA_RUN}/.nova_compute_enabled"
|
|
NOVA_ADVANCE_ENABLED="/var/run/.nova_timer_advance_enabled"
|
|
|
|
case "$1" in
|
|
start)
|
|
if [ -e ${VOLATILE_COMPUTE_CONFIG_COMPLETE} ] && [ ! -e ${VOLATILE_DISABLE_COMPUTE_SERVICES} ]; then
|
|
log "Start"
|
|
|
|
if [ -e ${NOVA_INIT_FAILED} ]; then
|
|
log "Nova-Init check FAILED"
|
|
exit ${GENERIC_ERROR}
|
|
fi
|
|
|
|
log "Nova-Init check PASSED"
|
|
|
|
while [ true ]; do
|
|
if [ -e ${NOVA_ADVANCE_ENABLED} ]; then
|
|
log "Nova setup timer advance PASSED"
|
|
break
|
|
fi
|
|
|
|
sleep 1
|
|
done
|
|
|
|
while [ true ]; do
|
|
if [ -e ${NOVA_COMPUTE_ENABLED} ]; then
|
|
log "Nova-Compute service enabled PASSED"
|
|
break
|
|
fi
|
|
|
|
sleep 1
|
|
done
|
|
|
|
log "Finished"
|
|
fi
|
|
;;
|
|
|
|
stop)
|
|
;;
|
|
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
exit ${SUCCESS}
|