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

version 1.16, 2004/01/05 22:36:48 version 1.17, 2004/04/01 22:14:42
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 -c '/home/httpd/perl/loncron' www");      system("su www -c '/home/httpd/perl/loncron'");
 } 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 -c '/home/httpd/perl/loncron new' www");      system("su www -c '/home/httpd/perl/loncron new'");
 } 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 -c '/home/httpd/perl/loncron' www");      system("su www -c '/home/httpd/perl/loncron'");
 } 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 -c '/home/httpd/perl/loncron new' www");      system("su www -c '/home/httpd/perl/loncron new'");
 } 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/) {

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


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