Minecraft wiki entry for Create_a_Mac_OS_X_startup_daemon, associated text: Next, the script simply checks periodically to see if there are any active connection on the Minecraft port, and if not, it waits for the server to shutdown before listening again for more connections.