diff options
author | Andrew Dolgov <[email protected]> | 2011-12-26 13:50:35 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-26 13:50:35 +0400 |
commit | 5893edd57ac8ac18612469eee8ceda1dfe05725e (patch) | |
tree | b05ce3e33e025b7d03e295204097a0427dcb23ba | |
parent | 6802e1bedfa0c108d9e24dc7fe58e3dc14489eb8 (diff) |
fix daemon sleep interval
-rwxr-xr-x | update_daemon2.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index c55a8aaae..62bd7591a 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -1,6 +1,6 @@ #!/usr/bin/php <?php - set_include_path(get_include_path() . PATH_SEPARATOR . + set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . "/include"); // This is an experimental multiprocess update daemon. @@ -22,6 +22,11 @@ require_once "sanity_check.php"; require_once "config.php"; + require_once "db.php"; + require_once "db-prefs.php"; + require_once "functions.php"; + require_once "rssfuncs.php"; + require_once "lib/magpierss/rss_fetch.inc"; define('MAX_JOBS', 2); define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL); @@ -30,12 +35,6 @@ die("error: This script requires PHP compiled with PCNTL module.\n"); } - require_once "db.php"; - require_once "db-prefs.php"; - require_once "functions.php"; - require_once "rssfuncs.php"; - require_once "lib/magpierss/rss_fetch.inc"; - $children = array(); $ctimes = array(); |