def start(): utils.check_configure() for pro in program: if sign == 1 and pro != "./stop_listen.py": os.system(pro + " --force") else: os.system(pro) if package: log_package()
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")
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")
def start(): utils.check_configure() if os.path.exists("all"): utils.check_all_process_port() check_process_exit() for ps in process_string: os.chdir(child_path) pro = str("./start_" + ps + ".py") if pro == "./start_listen.py": time.sleep(3) if os.path.exists("script_file/listend") == False: os.system(pro) else: os.system(pro)
def start(): utils.check_configure() check_running_process() os.chdir(child_path + "/script_file/") if os.path.exists("game_server") or os.path.exists( "dbcached") or os.path.exists("scened"): recreate_game_db() recreate_log_db() elif os.path.exists("logind"): recreate_login_db() elif os.path.exists("common_resourced"): recreate_common_resource_db() elif os.path.exists("gmd"): recreate_gm_db() elif os.path.exists("all"): recreate_game_db() recreate_log_db() recreate_login_db() recreate_common_resource_db() recreate_gm_db() else: print "\n不需要重建数据库\n" os._exit(0)