[LON-CAPA-cvs] cvs: loncom /init.d loncontrol

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 05 Jan 2004 22:36:48 -0000


albertel		Mon Jan  5 17:36:48 2004 EDT

  Modified files:              
    /loncom/init.d	loncontrol 
  Log:
  - renabling loncnew
  
  
Index: loncom/init.d/loncontrol
diff -u loncom/init.d/loncontrol:1.15 loncom/init.d/loncontrol:1.16
--- loncom/init.d/loncontrol:1.15	Thu Dec 18 16:23:01 2003
+++ loncom/init.d/loncontrol	Mon Jan  5 17:36:48 2004
@@ -48,7 +48,7 @@
     print("not running\n");
 }
 
-if (($command eq "restart") or ($command eq "reload")) {
+if (($command eq "restartold") or ($command eq "reloadold")) {
     print 'Restarting LON-CAPA'."\n";
     print 'Ending LON-CAPA client and daemon processes'."\n";
     foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
@@ -57,8 +57,7 @@
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.
 	"\n";
     system("su -c '/home/httpd/perl/loncron' www");
-}
-elsif (($command eq "restartnew") or ($command eq "reloadnew")) {
+} elsif (($command eq "restart") or ($command eq "reload")) {
     print 'Restarting LON-CAPA'."\n";
     print 'Ending LON-CAPA client and daemon processes'."\n";
     foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
@@ -67,26 +66,22 @@
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.
 	"\n";
     system("su -c '/home/httpd/perl/loncron new' www");
-}
-elsif ($command eq "stop") {
+} elsif ($command eq "stop") {
     print 'Stopping LON-CAPA'."\n";
     foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
 	&stop_daemon($daemon);
     }
-}
-elsif ($command eq "start") {
+} elsif ($command eq "startold") {
     print 'Starting LON-CAPA'."\n";
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.
 	"\n"; 
     system("su -c '/home/httpd/perl/loncron' www");
-}
-elsif ($command eq "startnew") {
+} elsif ($command eq "start") {
     print 'Starting LON-CAPA'."\n";
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.
 	"\n"; 
     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`;
     if ($response=~/No such file or directory/) {
 	print 'LON-CAPA is not running.'."\n";
@@ -94,8 +89,7 @@
     else {
 	print 'LON-CAPA is running.'."\n";
     }
-}
-else {
+} else {
     print 'You need to specify restart|stop|start|status on the command line'.
 	' argument.'."\n";
 }