Added port attribute and fixed template for upstart

Tested on xubuntu 12.10