e5b78048743206f491e7ad0180e50e5796af0343
2 # Desc:Marks the time when a remote server can be pinged.
3 # Depends: GNU Coreutils 8.32 (date, sleep), iputils-ping 3:20211215-1 (ping)
9 if [[ -n "$1" ]]; then domain
="$1"; fi;
11 printf "%s:STATUS:Starting ping...\n" "$(date -Is)";
12 while ! ping -c1 "$domain"; do
15 printf "%s:Ping resolved.\n" "$(date -Is)";