Thanks much for this tutorial. If the mycontroller directory (part 2) is not moved to /opt, then the /etc/init.d/mycontroller script (part 4) needs to be edited appropriately.