aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev/lcdproc_client.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2012-10-26 10:34:35 +0545
committerPhil Davis <phil.davis@world.inf.org>2012-10-26 10:34:35 +0545
commit01ff711f78efb02eb1a1fb30dbc2ddecef2aee54 (patch)
tree3f3cc1f9dfaecbf2cdd80c2decfba40e691c10a7 /config/lcdproc-dev/lcdproc_client.php
parentc106d324ae84469380d4653d09f371d92bfdfb06 (diff)
downloadpfsense-packages-01ff711f78efb02eb1a1fb30dbc2ddecef2aee54.tar.gz
pfsense-packages-01ff711f78efb02eb1a1fb30dbc2ddecef2aee54.tar.bz2
pfsense-packages-01ff711f78efb02eb1a1fb30dbc2ddecef2aee54.zip
Allow lcdproc_client to run forever
In 2.1 a CPU time limit of 900 seconds is set for PHP scripts. Normal scripts used by the GUI should do their thing and finish. But lcdproc needs to run "forever" in the background.
Diffstat (limited to 'config/lcdproc-dev/lcdproc_client.php')
-rw-r--r--config/lcdproc-dev/lcdproc_client.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/lcdproc-dev/lcdproc_client.php b/config/lcdproc-dev/lcdproc_client.php
index 6050b6ca..22713b98 100644
--- a/config/lcdproc-dev/lcdproc_client.php
+++ b/config/lcdproc-dev/lcdproc_client.php
@@ -911,6 +911,8 @@
lcdproc_warn("Failed to connect to LCDd process $errstr ($errno)");
$lcdproc_connect_errors++;
} else {
+ /* Allow the script to run forever (0) */
+ set_time_limit(0);
build_interface($lcd);
loop_status($lcd);
fclose($lcd);