Changeset 21687 for main/trunk/greenstone2/perllib/g2futil.pm
- Timestamp:
- 2010-01-27T20:54:06+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/g2futil.pm
r21588 r21687 291 291 # The top of this file has already made sure that FEDORA_HOME is set, but for GS3 292 292 # CATALINA_HOME is set to GS' own tomcat. Since we'll be working with fedora, we need 293 # to temporarily set CATALINA_HOME to fedora's tomcat. (Catalina is undefined for GS2 ).293 # to temporarily set CATALINA_HOME to fedora's tomcat. (Catalina is undefined for GS2.) 294 294 my $gs_catalina_home = $ENV{'CATALINA_HOME'} if defined $ENV{'CATALINA_HOME'}; 295 295 $ENV{'CATALINA_HOME'} = &util::filename_cat($ENV{'FEDORA_HOME'}, "tomcat"); … … 396 396 print STDERR "Fedora server restarted. Waiting for it to become ready...\n"; 397 397 #print STDERR "****$protocol://$hostname:$port/fedora/search\n"; 398 399 398 $! = 0; 400 401 399 #my $fedoraServerReady = system("wget -q --spider --waitretry=10 --tries=20 $protocol://$hostname:$port/fedora/search"); 400 402 401 # The retries above won't work if the server isn't running: 403 402 # http://www.gnu.org/software/wget/manual/wget.html … … 406 405 # with the exception of fatal errors like "connection refused" or "not found" (404), which ARE NOT RETRIED. 407 406 408 # retry fedora server every second for a total of 15times until the server is ready407 # retry fedora server every second for a total of 20 times until the server is ready 409 408 my $fedoraServerReady = 0; 410 409 my $count = 0; … … 416 415 #print STDERR "$count second(s)\n"; 417 416 } 418 } while($fedoraServerReady != 0 && $count < 15);417 } while($fedoraServerReady != 0 && $count < 20); 419 418 420 419 if($fedoraServerReady != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.