Support pid and socket options for upstart template