#!/bin/bash

# Path to your Laravel project
PROJECT_DIR="/home/hzlyfbzf/public_html/etkezes"

# Path to PHP binary
PHP_BIN="/usr/local/bin/php"

# Check if a queue worker is already running
if ! pgrep -f "artisan queue:work" > /dev/null
then
    cd $PROJECT_DIR
    $PHP_BIN artisan queue:work --daemon --sleep=3 --tries=3 --timeout=90 > /dev/null 2>&1 &
fi

