diff --git a/Job_Queue.txt b/Job_Queue.txt deleted file mode 100755 index 56a6051c..00000000 --- a/Job_Queue.txt +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/job_queue b/job_queue deleted file mode 100755 index c2270834..00000000 --- a/job_queue +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/phpqueue.bat b/phpqueue.bat deleted file mode 100644 index 5247ccff..00000000 --- a/phpqueue.bat +++ /dev/null @@ -1,42 +0,0 @@ -@echo off -setlocal enabledelayedexpansion - -REM Get the directory of the current script -set "ROOT_DIR=%~dp0" -set "JOB_QUEUE_FILE=%ROOT_DIR%job_queue" -set "PID_FILE=%ROOT_DIR%phpqueue.pid" - -REM Check if the script is already running -if exist "%PID_FILE%" ( - for /f "tokens=*" %%i in (%PID_FILE%) do set PID=%%i - tasklist /fi "PID eq !PID!" | findstr /i "!PID!" >nul - if not errorlevel 1 ( - echo phpqueue.bat is already running. Exiting. - exit /b - ) -) - -REM Write the current process ID (PID) to the PID file -echo %PROCESS_ID% > "%PID_FILE%" - -REM Main loop -:loop -REM Check if the Job_Queue file exists -if not exist "%JOB_QUEUE_FILE%" ( - echo Job Queue file not found. - exit /b -) - -REM Read the value of Job_Queue from the file -set /p Job_Queue=<%JOB_QUEUE_FILE% - -if "%Job_Queue%"=="1" ( - REM Run PHP job processing - php "%ROOT_DIR%htdocs/nhance/public/index.php" cli/processjob -) else ( - echo No job to process. -) - -REM Sleep for 1 second before the next iteration -timeout /T 1 >nul -goto loop diff --git a/phpqueue.pid b/phpqueue.pid deleted file mode 100644 index db08d2ac..00000000 --- a/phpqueue.pid +++ /dev/null @@ -1 +0,0 @@ -575 diff --git a/phpsetvariable.sh b/phpsetvariable.sh deleted file mode 100755 index 69c1b0ac..00000000 --- a/phpsetvariable.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# Validate input argument -# if [[ "$1" == "1" ]]; then -# echo "1" > /opt/lampp/htdocs/nhance/Job_Queue -# echo "Job Queue variable has been set to: 1" -# elif [[ "$1" == "0" ]]; then -# echo "0" > /opt/lampp/htdocs/nhance/Job_Queue -# echo "Job Queue variable has been set to: 0" -# else -# echo "Invalid argument. Use 1 to enable the queue or 0 to disable it." -# exit 1 -# fi