Minecraft wiki entry for Create_a_Mac_OS_X_startup_daemon, associated text: The start script needs to be asynchronously started and wait upon, as trap needs to exit wait to execute properly See trap examples and explanation here.