Diff for /loncom/init.d/loncontrol between versions 1.13 and 1.16

version 1.13, 2003/11/06 15:05:23 version 1.16, 2004/01/05 22:36:48
Line 57  if (($command eq "restartold") or ($comm Line 57  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 -c '/home/httpd/perl/loncron' www");      system("su -c '/home/httpd/perl/loncron' www");
 }  } 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";
     foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {      foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
Line 67  elsif (($command eq "restart") or ($comm Line 66  elsif (($command eq "restart") 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 -c '/home/httpd/perl/loncron new' www");      system("su -c '/home/httpd/perl/loncron new' www");
 }  } 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') {
  &stop_daemon($daemon);   &stop_daemon($daemon);
     }      }
 }  } elsif ($command eq "startold") {
 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 -c '/home/httpd/perl/loncron' www");      system("su -c '/home/httpd/perl/loncron' www");
 }  } elsif ($command eq "start") {
 elsif ($command eq "startnew") {  
     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 -c '/home/httpd/perl/loncron new' www");      system("su -c '/home/httpd/perl/loncron new' www");
 }  } 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";
Line 94  elsif ($command eq "status") { Line 89  elsif ($command eq "status") {
     else {      else {
  print 'LON-CAPA is running.'."\n";   print 'LON-CAPA is running.'."\n";
     }      }
 }  } else {
 else {  
     print 'You need to specify restart|stop|start|status on the command line'.      print 'You need to specify restart|stop|start|status on the command line'.
  ' argument.'."\n";   ' argument.'."\n";
 }  }

Removed from v.1.13  
changed lines
  Added in v.1.16


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