config/config-gate/files/wait_for_compute_config_ini...

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