added startup options and apply actually writes the upstart job