Exemplo n.º 1
0
def stop_daemon_process(process_name, pid_file, dest_path, script):
    if not check_process_is_running(pid_file):
        Log.print_warning("%s is not running" % process_name)
        return

    Log.print_info("Stopping %s" % process_name)
    exec_daemon_script(dest_path, script, str(get_process_running_pid(pid_file)))
    Log.print_success("Stop %s success" % process_name)
Exemplo n.º 2
0
def start_daemon_process(process_name, pid_file, dest_path, script, *extra_para):
    if check_process_is_running(pid_file):
        Log.print_warning("%s is running, please check" % process_name)
        return

    Log.print_info("Starting %s" % process_name)
    exec_daemon_script(dest_path, script, *extra_para)
    Log.print_success("Start %s success" % process_name)
Exemplo n.º 3
0
def stop_daemon_process(process_name, pid_file, dest_path, script):
  if not check_process_is_running(pid_file):
    Log.print_warning("%s is not running" % process_name)
    return

  Log.print_info("Stopping %s" % process_name)
  exec_daemon_script(dest_path, script, str(get_process_running_pid(pid_file)))
  Log.print_success("Stop %s success" % process_name)
Exemplo n.º 4
0
def start_daemon_process(process_name, pid_file, dest_path, script, *extra_para):
  if check_process_is_running(pid_file):
    Log.print_warning("%s is running, please check" % process_name)
    return

  Log.print_info("Starting %s" % process_name)
  exec_daemon_script(dest_path, script, *extra_para)
  Log.print_success("Start %s success" % process_name)
Exemplo n.º 5
0
def build_client():
    # Check and install prerequisite python libraries
    Log.print_info("Check and install prerequisite python libraries")
    build_utils.check_and_install_modules(CLIENT_PREREQUISITE_PYTHON_LIBS)
    Log.print_success("Build Minos client success")
Exemplo n.º 6
0
def build_client():
  # Check and install prerequisite python libraries
  Log.print_info("Check and install prerequisite python libraries")
  build_utils.check_and_install_modules(CLIENT_PREREQUISITE_PYTHON_LIBS)
  Log.print_success("Build Minos client success")