check if a server is running before startup