blob: 8ac03f7e7df413962cf2cc2ab81238f9441ee87a [file] [log] [blame]
#!/bin/sh -e
# wait startup to finish
while ! test -f /container/run/state/startup-done
do
sleep 0.5
done
for process in "$@"
do
# wait service
while ! pgrep -c "${process}" > /dev/null
do
sleep 0.5
done
done