def stop_logic_services():
    for service in SERVICE_TYPE:
        if service == ST_SERVICE_MGR:
            continue

        path = os.path.join(cur_file_path, "workspace", "_".join(service.split("_")[1:]), "start.py")
        stop_process(path)
        logger.warn("sleep %ss for %s heartbeat:%s!!!" % (BEAT_INTERVAL, service, path))
        time.sleep(1)
Beispiel #2
0
def stop_logic_services():
    for service in SERVICE_TYPE:
        if service == ST_SERVICE_MGR:
            continue

        path = os.path.join(cur_file_path, "workspace",
                            "_".join(service.split("_")[1:]), "start.py")
        stop_process(path)
        logger.warn("sleep %ss for %s heartbeat:%s!!!" %
                    (BEAT_INTERVAL, service, path))
        time.sleep(1)
def stop_service_mgr():
    stop_process(service_mgr_path)
Beispiel #4
0
def stop_logic_services():
    stop_process(mmm_da_start_path)
    time.sleep(1)
Beispiel #5
0
def stop_service_mgr():
    stop_process(service_mgr_path)