Diff for /loncom/init.d/loncontrol between versions 1.3 and 1.4

version 1.3, 2000/10/26 02:46:57 version 1.4, 2000/10/27 18:06:00
Line 23  if (($command eq "restart") or ($command Line 23  if (($command eq "restart") or ($command
     print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`;      print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`;
     print "Starting LON-CAPA client and daemon processes (please be patient)\n";      print "Starting LON-CAPA client and daemon processes (please be patient)\n";
     system("su -c '/home/httpd/perl/loncron' www");      system("su -c '/home/httpd/perl/loncron' www");
     print "Restarting web server\n";  
     print `/etc/rc.d/init.d/httpd restart`;  
 }  }
 elsif ($command eq "stop") {  elsif ($command eq "stop") {
     print "Stopping LON-CAPA\n";      print "Stopping LON-CAPA\n";
     print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`;      print `su -c '/bin/kill \`/bin/cat /home/httpd/perl/logs/*.pid\`' www`;
     print "Stopping web server\n";  
     print `/etc/rc.d/init.d/httpd stop`;  
 }  }
 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)\n";       print "Starting LON-CAPA client and daemon processes (please be patient)\n"; 
     system("su -c /home/httpd/perl/loncron www");      system("su -c /home/httpd/perl/loncron www");
     print "Starting web server\n";  
     print `/etc/rc.d/init.d/httpd start`;  
 }  }
 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`;

Removed from v.1.3  
changed lines
  Added in v.1.4


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