Files
docker-ping/ping

4 lines
131 B
Plaintext
Raw Normal View History

2017-01-22 12:32:01 -07:00
#!/bin/sh
echo ping ${HOSTNAME:=localhost} every ${TIMEOUT:=300} sec
2016-07-07 12:37:46 -06:00
2017-01-22 12:32:01 -07:00
while true; do ping -c 1 ${HOSTNAME}; sleep ${TIMEOUT}; done;