Make server status use a 20 timeout

This commit is contained in:
Jonathan Hodgson 2019-03-14 17:15:00 +00:00
parent db460c3fa5
commit a9466e8644

View file

@ -23,7 +23,7 @@ checkRandomSite(){
}
checkURL(){
responce=$(curl -s --head -w %{http_code} $1 -L -o /dev/null --connect-timeout 10)
responce=$(curl -s --head -w %{http_code} $1 -L -o /dev/null --connect-timeout 20)
if [ "$responce" != 200 ]; then
pgrep -x dunst && notify-send -u critical "$1 is down" "<b>Server:</b> $2\n<b>Responce:</b> $responce" & disown
fi