From 01ff711f78efb02eb1a1fb30dbc2ddecef2aee54 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 26 Oct 2012 10:34:35 +0545 Subject: 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. --- config/lcdproc-dev/lcdproc_client.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') 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); -- cgit v1.2.3