Diff for /loncom/init.d/loncontrol between versions 1.17 and 1.18

version 1.17, 2004/04/01 22:14:42 version 1.18, 2004/05/11 21:22:04
Line 56  if (($command eq "restartold") or ($comm Line 56  if (($command eq "restartold") or ($comm
     }      }
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.      print 'Starting LON-CAPA client and daemon processes (please be patient)'.
  "\n";   "\n";
     system("su www -c '/home/httpd/perl/loncron'");      system("su www -c '/home/httpd/perl/loncron --oldlonc --justcheckdaemons'");
 } elsif (($command eq "restart") or ($command eq "reload")) {  } elsif (($command eq "restart") or ($command eq "reload")) {
     print 'Restarting LON-CAPA'."\n";      print 'Restarting LON-CAPA'."\n";
     print 'Ending LON-CAPA client and daemon processes'."\n";      print 'Ending LON-CAPA client and daemon processes'."\n";
Line 65  if (($command eq "restartold") or ($comm Line 65  if (($command eq "restartold") or ($comm
     }      }
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.      print 'Starting LON-CAPA client and daemon processes (please be patient)'.
  "\n";   "\n";
     system("su www -c '/home/httpd/perl/loncron new'");      system("su www -c '/home/httpd/perl/loncron --justcheckdaemons'");
 } elsif ($command eq "stop") {  } elsif ($command eq "stop") {
     print 'Stopping LON-CAPA'."\n";      print 'Stopping LON-CAPA'."\n";
     foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {      foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
Line 75  if (($command eq "restartold") or ($comm Line 75  if (($command eq "restartold") or ($comm
     print 'Starting LON-CAPA'."\n";      print 'Starting LON-CAPA'."\n";
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.      print 'Starting LON-CAPA client and daemon processes (please be patient)'.
  "\n";    "\n"; 
     system("su www -c '/home/httpd/perl/loncron'");      system("su www -c '/home/httpd/perl/loncron --oldlonc --justcheckdaemons'");
 } elsif ($command eq "start") {  } elsif ($command eq "start") {
     print 'Starting LON-CAPA'."\n";      print 'Starting LON-CAPA'."\n";
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.      print 'Starting LON-CAPA client and daemon processes (please be patient)'.
  "\n";    "\n"; 
     system("su www -c '/home/httpd/perl/loncron new'");      system("su www -c '/home/httpd/perl/loncron --justcheckdaemons'");
 } elsif ($command eq "status") {  } elsif ($command eq "status") {
     $response=`/bin/cat /home/httpd/perl/logs/*.pid 2>&1`;      $response=`/bin/cat /home/httpd/perl/logs/*.pid 2>&1`;
     if ($response=~/No such file or directory/) {      if ($response=~/No such file or directory/) {
  print 'LON-CAPA is not running.'."\n";   print 'LON-CAPA is not running.'."\n";
     }      } else {
     else {  
  print 'LON-CAPA is running.'."\n";   print 'LON-CAPA is running.'."\n";
    system("su www -c '/home/httpd/perl/loncron --justcheckconnections'");
     }      }
 } else {  } else {
     print 'You need to specify restart|stop|start|status on the command line'.      print 'You need to specify one of restart|stop|start|status on the command line.'."\n";
  ' argument.'."\n";  
 }  }

Removed from v.1.17  
changed lines
  Added in v.1.18


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>