def reload():
    ve_dir = cget("virtualenv_dir")
    activate = pjoin(ve_dir, "bin", "activate")
    show(yellow("Reloading supervisor."))
    with prefix("source %s" % activate):
        with settings(hide("stderr", "stdout", "running"), warn_only=True):
            res = run_supevisordctl('reload')
            if res.return_code != 0:
                show(yellow("Supervisor unavailable, starting new process."))
                res = start_supervisor()
                if res.return_code != 0:
                    show(red("Error starting supervisor!."))
Start or restart supervisor process.
dataset/ETHPy150Open ipeirotis/Mturk-Tracker/deployment/modules/supervisor.py/reload