Update of /cvsroot/fink/pdb
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26206

Modified Files:
        create-finkdb.pl 
Log Message:
wait for things to come up/shut down

Index: create-finkdb.pl
===================================================================
RCS file: /cvsroot/fink/pdb/create-finkdb.pl,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- create-finkdb.pl    6 Sep 2009 17:50:00 -0000       1.40
+++ create-finkdb.pl    6 Sep 2009 17:53:43 -0000       1.41
@@ -208,6 +208,9 @@
                if ($p->cmndline =~ /fink.temporary.solr/) {
                        info("- stopping old temporary solr(" . $p->pid . "): " 
. $p->cmndline);
                        $p->kill(15);
+
+                       debug("  - waiting a few seconds for it to shut down");
+                       sleep(5);
                }
        }
 
@@ -217,6 +220,9 @@
        info("- starting temporary solr instance\n");
        $ENV{'SOLR_OPTS'} = "-Dfink.temporary.solr=1 
-Djetty.port=$solr_temp_port";
        system($solr_temp_path . '/start.sh') == 0 or die "unable to start solr 
on port $solr_temp_port: $?";
+
+       debug("  - waiting a few seconds for it to come up");
+       sleep(5);
 }
 
 my $started = 0;
@@ -283,6 +289,8 @@
                if ($p->cmndline =~ /fink.temporary.solr/) {
                        info("- stopping temporary solr(" . $p->pid . "): " . 
$p->cmndline);
                        $p->kill(15);
+                       debug("  - waiting a few seconds for it to shut down");
+                       sleep(5);
                }
        }
 
@@ -291,6 +299,8 @@
                if ($p->cmndline =~ /solr\/start.jar/) {
                        info("- stopping production solr(" . $p->pid . "): " . 
$p->cmndline . "\n");
                        $p->kill(15);
+                       debug("  - waiting a few seconds for it to shut down");
+                       sleep(5);
                }
        }
 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to