def _configure_sphinx_cron(self):
        logger.info("Configuring sphinx index-building cronjobs")

        # Ensure that the cron jobs for re-indexing are configured
        script_path = '/var/lib/sphinxsearch/policystat_indexer.sh'
        cron_location = '/etc/cron.d/policystat_sphinx'

        context = {
            'indexer_script': script_path,
            'log_dir': '/var/log/pstat',
        }
        with hide(*fab_output_hides):
            upload_template(
                "../config/tpl/sphinx/cron.d/policystat_sphinx",
                cron_location,
                context,
                use_sudo=True)
            sudo('chown root:root %s' % cron_location)
Configure the sphinx search daemon and indexing.
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/brain_wrinkles/pstat/app.py/AppServerProvisioner._configure_sphinx_cron