adding templates

This commit is contained in:
afeiszli
2021-11-29 05:28:08 -05:00
parent 801919ab0d
commit dc6ee1a18a
4 changed files with 140 additions and 1 deletions

View File

@@ -16,9 +16,12 @@ if [ $? -ne 0 ]; then { echo "Failed to join, quitting." ; exit 1; } fi
echo "[netclient] Starting netclient checkin"
# loop and call checkin -n all
FAILCOUNT=0
while [ 1 ]; do
# add logs to netclient.logs
/root/netclient checkin -n all
if [ $? -ne 0 ]; then FAILCOUNT=$((FAILCOUNT+1)) ; else FAILCOUNT=0; fi
if [ $FAILCOUNT -gt 2 ]; then { echo "Failing checkins frequently, restarting." ; exit 1; } fi
sleep $SLEEP
done
echo "[netclient] exiting"