--- loncom/loncron 2002/05/17 16:19:24 1.27 +++ loncom/loncron 2002/06/08 14:59:04 1.30 @@ -58,7 +58,7 @@ ENDERROUT # --------------------------------- Read loncapa_apache.conf and loncapa.conf my $perlvarref=LONCAPA::Configuration::read_conf('loncapa_apache.conf', 'loncapa.conf'); -my %perlvar=%{$perlvarref}; +%perlvar=%{$perlvarref}; undef $perlvarref; delete $perlvar{'lonReceipt'}; # remove since sensitive and not needed delete $perlvar{'lonSqlAccess'}; # remove since sensitive and not needed @@ -239,6 +239,7 @@ if ($psproc>250) { $notices++; } # --------------------------------------------------------------- clean out tmp print $fh '
"; my $lfh=IO::File->new("$lonsqlfile"); my $lonsqlpid=<$lfh>; chomp($lonsqlpid); - sleep 30; + sleep 2; if (kill 0 => $lonsqlpid) { print $fh "
"; system( "$perlvar{'lonDaemons'}/lonsql 2>>$perlvar{'lonDaemons'}/logs/lonsql_errors"); - sleep 10; + sleep 2; } } else { print $fh "Seems like that did not work!
";
@@ -436,19 +449,19 @@ if ($restartflag==1) {
$errors++;
print $fh '
Killall lond: '.
system('killall lond').' - ';
- sleep 60;
+ sleep 2;
print $fh unlink($londfile).' - '.system('killall -9 lond').
'
';
print $fh "
"; my $lfh=IO::File->new("$londfile"); my $londpid=<$lfh>; chomp($londpid); - sleep 30; + sleep 2; if (kill 0 => $londpid) { print $fh "
"; system( "$perlvar{'lonDaemons'}/lond 2>>$perlvar{'lonDaemons'}/logs/lond_errors"); - sleep 10; + sleep 2; } } else { print $fh "Seems like that did not work!
";
@@ -532,19 +545,19 @@ if ($restartflag==1) {
$errors++;
print $fh '
Killall lonc: '.
system('killall lonc').' - ';
- sleep 60;
+ sleep 2;
print $fh unlink($loncfile).' - '.system('killall -9 lonc').
'
';
print $fh "
"; my $lfh=IO::File->new("$loncfile"); my $loncpid=<$lfh>; chomp($loncpid); - sleep 30; + sleep 2; if (kill 0 => $loncpid) { print $fh "
"; system( "$perlvar{'lonDaemons'}/lonc 2>>$perlvar{'lonDaemons'}/logs/lonc_errors"); - sleep 10; + sleep 2; } } else { print $fh "Seems like that did not work!
";