From 3d2581b4f4d6ad532b55b7274cefc12da6e3c966 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 20 Jul 2015 20:54:57 +0200 Subject: [PATCH] shell: add a maximum execution time on screen tasks --- web/blocks.sh | 2 ++ web/loop2.sh | 2 ++ web/main.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/web/blocks.sh b/web/blocks.sh index e6e9b7f..cb0d8a0 100755 --- a/web/blocks.sh +++ b/web/blocks.sh @@ -1,5 +1,7 @@ #!/bin/bash +alias php5='php -d max_execution_time=60' + cd /var/web while true; do php5 run.php cronjob/runblocks diff --git a/web/loop2.sh b/web/loop2.sh index eed2c00..b7449d1 100755 --- a/web/loop2.sh +++ b/web/loop2.sh @@ -1,5 +1,7 @@ #!/bin/bash +alias php5='php -d max_execution_time=120' + cd /var/web while true; do php5 run.php cronjob/runloop2 diff --git a/web/main.sh b/web/main.sh index c033e73..cd783f9 100755 --- a/web/main.sh +++ b/web/main.sh @@ -1,5 +1,7 @@ #!/bin/bash +alias php5='php -d max_execution_time=120' + cd /var/web while true; do php5 run.php cronjob/run