--- loncom/loncron 2002/05/27 19:21:59 1.29
+++ loncom/loncron 2002/06/08 14:59:04 1.30
@@ -352,20 +352,20 @@ if ($perlvar{'lonRole'} eq "library") {
$errors++;
print $fh '
Killall lonsql: '.
system('killall lonsql').' - ';
- sleep 60;
+ sleep 2;
print $fh unlink($lonsqlfile).' - '.
system('killall -9 lonsql').
'
';
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!
";
@@ -449,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!
";
@@ -545,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!
";