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

taceyjo1 lon-capa-cvs@mail.lon-capa.org
Thu, 01 Apr 2004 22:14:42 -0000


taceyjo1		Thu Apr  1 17:14:42 2004 EDT

  Modified files:              
    /loncom/init.d	loncontrol 
  Log:
  Fix for non-redhat people, also note, NO change in style :0)
  
  
  
Index: loncom/init.d/loncontrol
diff -u loncom/init.d/loncontrol:1.16 loncom/init.d/loncontrol:1.17
--- loncom/init.d/loncontrol:1.16	Mon Jan  5 17:36:48 2004
+++ loncom/init.d/loncontrol	Thu Apr  1 17:14:42 2004
@@ -56,7 +56,7 @@
     }
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.
 	"\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")) {
     print 'Restarting LON-CAPA'."\n";
     print 'Ending LON-CAPA client and daemon processes'."\n";
@@ -65,7 +65,7 @@
     }
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.
 	"\n";
-    system("su -c '/home/httpd/perl/loncron new' www");
+    system("su www -c '/home/httpd/perl/loncron new'");
 } elsif ($command eq "stop") {
     print 'Stopping LON-CAPA'."\n";
     foreach my $daemon ('lonsql','lond','lonc','lonhttpd') {
@@ -75,12 +75,12 @@
     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");
+    system("su www -c '/home/httpd/perl/loncron'");
 } 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");
+    system("su www -c '/home/httpd/perl/loncron new'");
 } elsif ($command eq "status") {
     $response=`/bin/cat /home/httpd/perl/logs/*.pid 2>&1`;
     if ($response=~/No such file or directory/) {