blob: 8512b9f89df1b42b3d783431338fe8652ea1e840 [file] [log] [blame]
#!/bin/bash
#_run.sh runs the agent client.
# set -x
while true
do
./_run.sh "$@"
ex=$?
if [ $ex -eq 0 ] || [ $ex -eq 1 ] || [ $ex -eq 66 ] || [ $ex -gt 128 ]; then
# permanent errors
sleep 160
elif [ $ex -eq 143 ]; then
# service cloud stop causes exit with 143
exit $ex
fi
sleep 20
done