alpine-server/bin/checkpod

14 lines
157 B
Text
Raw Permalink Normal View History

#!/bin/sh
. ./conf
exec 2>&1
state=0
while [ $state == 0 ]
do
sleep 10
$command pod inspect ${name}-pod | grep -q '"State": "Running"' || state=1
done