http://www.tuxisalive.com/documentation/how-to/daemon-and-api-setup