Exemplo n.º 1
0
def start():
    utils.check_configure()
    if os.path.exists(child_path + "/script_file/chatd"):
        os.chdir(child_path + "/script_file")
        utils.check_port_public(utils.read_file("chatd_port"), "jxwy_chatd")
        os.chdir(parent_path)
        os.system("./jxwy_chatd")
    if os.path.exists(child_path + "/script_file/all"):
        utils.check_single_process_port("jxwy_chatd")
        os.chdir(parent_path)
        os.system("./jxwy_chatd")
Exemplo n.º 2
0
def start():
    utils.check_configure()
    if os.path.exists(child_path + "/script_file/routed"):
        os.chdir(child_path + "/script_file")
        routed_ports = utils.read_file("routed_ports").split(',')
        for i in routed_ports:
            utils.check_port_public(i, "jxwy_routed")
        os.chdir(parent_path)
        os.system("./jxwy_routed")
    if os.path.exists(child_path + "/script_file/all"):
        utils.check_single_process_port("jxwy_routed")
        os.chdir(parent_path)
        os.system("./jxwy_routed")