pool/web/loop2.sh
Tanguy Pruvot 2f39b463b5 cronjob: migrate other scripts to the new console
also remove the need of hardcoded folders in these scripts (/var/web)

and the script alias which doesnt work on all bash systems
2017-07-30 23:01:39 +02:00

16 lines
249 B
Bash
Executable file

#!/bin/bash
PHP_CLI='php -d max_execution_time=120'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR}
date
echo started in ${DIR}
while true; do
${PHP_CLI} runconsole.php cronjob/runLoop2
sleep 60
done
exec bash