Verified Commit f1d8a48e authored by Fabio Bonfiglio's avatar Fabio Bonfiglio 💾
Browse files

Reduce nslookup timeout to 1 second, to detect outages faster.

parent 661c7150
......@@ -70,7 +70,7 @@ if [ $DISP -eq 1 ]; then
fi
while [ $RUNME -eq 1 ]; do
RES=$(nslookup $REMOTEHOST)
RES=$(nslookup -timeout=1 $REMOTEHOST)
if [ $? -ne 0 ]; then
if [ $STATUS -ne 0 ]; then
STATUS=0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment