repeatedly check if server is alive

 every 1 sec