예제 #1
0
    def start_service(self,
                      service_name,
                      run_from,
                      proxy,
                      classifier=None,
                      service_mapping_ports=None,
                      port=None,
                      admin_port=None,
                      version=None,
                      appendArgs=None):
        feature_string = pretty_print_list(" with feature$s $list enabled",
                                           self.features)
        self.log("Starting '%s' from %s%s..." %
                 (service_name, run_from, feature_string))
        service_starter = self.get_service_starter(service_name, run_from,
                                                   proxy, classifier,
                                                   service_mapping_ports, port,
                                                   admin_port, version,
                                                   appendArgs)
        service_process_id = service_starter.start()

        if service_process_id:
            feature_string = pretty_print_list(" and feature$s $list enabled",
                                               self.features)
            self.log(
                "'%s' version '%s' started with PID = %d%s" %
                (service_name, version, service_process_id, feature_string))
        else:
            self.log("'%s' version does not appear to have started" %
                     service_name)

        return service_process_id
예제 #2
0
    def start_service(self, service_name, run_from, proxy, classifier=None, service_mapping_ports=None, port=None, admin_port=None, version=None, appendArgs=None):
        feature_string = pretty_print_list(" with feature$s $list enabled", self.features)
        self.log("Starting '%s' from %s%s..." % (service_name, run_from, feature_string))
        service_starter = self.get_service_starter(service_name, run_from, proxy, classifier, service_mapping_ports, port, admin_port, version, appendArgs)
        service_process_id = service_starter.start()

        if service_process_id:
            feature_string = pretty_print_list(" and feature$s $list enabled", self.features)
            self.log("'%s' version '%s' started with PID = %d%s" % (service_name, version, service_process_id, feature_string))
        else:
            self.log("'%s' version does not appear to have started" % service_name)

        return service_process_id