updated to add templating to generate the upstart file