Files
config/config-gate/files/wait_for_compute_config_init.sh
Dean Troyer 9b95aa0a35 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:35:52 -07:00

21 lines
293 B
Bash

#!/bin/bash
#
# Copyright (c) 2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# Wait for compute config service
SERVICE=computeconfig.service
while :
do
systemctl status $SERVICE |grep -q running
if [ $? -ne 0 ]; then
exit 0
fi
sleep 1
done