add GPL license and exit with 0 if the server is online, 1 if it is not