#!/bin/bash
# start_worker.sh - Lance le worker avec le bon interpréteur PHP en ligne de commande.

# Se placer dans le bon répertoire
cd "/home/sc1xaba4059/public_html/cctx-v2.oriku.ovh" || exit 1

# Lancer le worker en arrière-plan en utilisant le chemin absolu vers l'interpréteur CLI
/usr/bin/php fetch_and_process.php > /dev/null 2>&1 &