X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon2.php;h=431f0b6a11d62dc8a40f89ec42ac142928be060b;hb=1d064e0da50c53708a593e50932fe35eddc55278;hp=a8eb48d4c2bfcf43cef3b120290cba8ed9664dee;hpb=0002bc9f27364ff04747dcc90a1e808dfbd76110;p=tt-rss.git diff --git a/update_daemon2.php b/update_daemon2.php index a8eb48d4..431f0b6a 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -8,8 +8,6 @@ declare(ticks = 1); - define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache-daemon'); - define('SIMPLEPIE_CACHE_DIR', '/var/tmp/simplepie-ttrss-cache-daemon'); define('DISABLE_SESSIONS', true); require_once "version.php"; @@ -27,8 +25,12 @@ define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL); + if (!function_exists('pcntl_fork')) { + die("error: This script requires PHP compiled with PCNTL module.\n"); + } + if (!ENABLE_UPDATE_DAEMON) { - die("Please enable option ENABLE_UPDATE_DAEMON in config.php\n"); + die("error: Please enable option ENABLE_UPDATE_DAEMON in config.php\n"); } require_once "db.php";