downdetector/scripts/loop.sh

18 lines
245 B
Bash
Raw Normal View History

2022-07-26 22:16:09 -04:00
#! /bin/bash
WAITTIME=60
chmod +x /dd/scripts/*
apt-get update && apt-get install -y iputils-ping
mkdir -p /dd/logs
while true;
do
/dd/scripts/file_uptime.sh || exit 404
echo ""
echo "Waiting $WAITTIME seconds"
sleep $WAITTIME
done;