def _ensure_sphinx_running(self):
        logger.info("Ensuring sphinx is running")

        def _is_running():
            check_cmd = "pgrep searchd > /dev/null"
            with hide(*fab_quiet):
                check_result = sudo(check_cmd)

            return check_result.return_code == 0

        def _start_sphinx(stop_first=False):
            start_cmd = "start sphinxsearch"

            with hide(*fab_output_hides):
                if stop_first:
                    with hide(*fab_quiet):
                        sudo("stop sphinxsearch")
                sudo(start_cmd)

        wait_str = (
            "searchd not running. "
            "Restarting and waiting %(wait_seconds)s"
        )
        _start_sphinx(stop_first=True)
        self.wait_for_condition(
            _is_running,
            wait_str,
            retry_action=_start_sphinx,
            wait_seconds=WAIT_TIME,
            prompt_cycles=2,
        )
set ups generic gum shader for selected objects
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/brain_wrinkles/pstat/app.py/AppServerProvisioner._ensure_sphinx_running--crossover with--dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/toolbox.py/Render.create_generic_gum_shader