I have put together some scripts to install HotHost as a supervisord service. Feel free to incorporate.
https://github.com/smokedsalmonbagel/hothost-client
The only real change to getinfo.sh is to source the 3 variables from another file.