Monasca setup has the functionality to create service file. It is probably also more capable as it detects the init system and so on. See https://github.com/openstack/monasca-agent/blob/master/monasca_setup/service/linux.py#L66