Diff for /loncom/init.d/loncontrol between versions 1.14 and 1.15

version 1.14, 2003/12/08 18:59:30 version 1.15, 2003/12/18 21:23:01
Line 48  sub stop_daemon { Line 48  sub stop_daemon {
     print("not running\n");      print("not running\n");
 }  }
   
 if (($command eq "restartold") or ($command eq "reloadold")) {  if (($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 58  if (($command eq "restartold") or ($comm Line 58  if (($command eq "restartold") or ($comm
  "\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 "restartnew") or ($command eq "reloadnew")) {
     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 74  elsif ($command eq "stop") { Line 74  elsif ($command eq "stop") {
  &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"; 

Removed from v.1.14  
changed lines
  Added in v.1.15


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