diff options
author | Andrew Dolgov <[email protected]> | 2007-03-15 16:55:49 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-15 16:55:49 +0100 |
commit | c7ab06fb90953bc8ede472394915dbc467a82210 (patch) | |
tree | 43d80e7f600a74c07fe450f84aecaaf94d070694 /update_daemon.php | |
parent | 4052b32d16238a2060cec078c0e566c95848c697 (diff) | |
parent | 34e420fb088e236fc19e54ad947ebd4b55eae534 (diff) |
add rudimentary hang-check based on pcntl_alarm (2)
Diffstat (limited to 'update_daemon.php')
-rw-r--r-- | update_daemon.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/update_daemon.php b/update_daemon.php index b42d7d214..ca60b2a3a 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -3,13 +3,19 @@ // this daemon runs in the background and updates all feeds // continuously - define('DEFAULT_ERROR_LEVEL', E_ALL); + // define('DEFAULT_ERROR_LEVEL', E_ALL); + define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE); declare(ticks = 1); define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache-daemon'); define('DISABLE_SESSIONS', true); - define('DAEMON_EXTENDED_DEBUG', true); + + require_once "version.php"; + + if (strpos(VERSION, ".99") !== false) { + define('DAEMON_EXTENDED_DEBUG', true); + } define('PURGE_INTERVAL', 3600); // seconds @@ -25,7 +31,7 @@ require_once "functions.php"; require_once "magpierss/rss_fetch.inc"; - error_reporting(E_ALL); + error_reporting(DEFAULT_ERROR_LEVEL); function sigint_handler() { unlink("update_daemon.lock"); |