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

raeburn raeburn@source.lon-capa.org
Wed, 22 Apr 2009 14:58:59 -0000


raeburn		Wed Apr 22 14:58:59 2009 EDT

  Modified files:              
    /loncom/init.d	loncontrol 
  Log:
  - Add lonr ('R' daemon).
  
  
Index: loncom/init.d/loncontrol
diff -u loncom/init.d/loncontrol:1.34 loncom/init.d/loncontrol:1.35
--- loncom/init.d/loncontrol:1.34	Mon Feb  2 17:06:55 2009
+++ loncom/init.d/loncontrol	Wed Apr 22 14:58:59 2009
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 #
-# $Id: loncontrol,v 1.34 2009/02/02 17:06:55 raeburn Exp $
+# $Id: loncontrol,v 1.35 2009/04/22 14:58:59 raeburn Exp $
 #
 # The LearningOnline Network with CAPA
 #
@@ -32,7 +32,7 @@
 # chkconfig: 345 95 5
 # description: LON-CAPA is a "network of knowledge".  It is used to \
 # distribute knowledge resources and instructional management.
-# processnames: lonc, lond, lonsql, lonmaxima
+# processnames: lonc, lond, lonsql, lonmaxima, lonr
 # pidfiles: /home/httpd/perl/logs/lon*.pid
 # config: /etc/httpd/conf/loncapa.conf
 # config: /home/httpd/lonTabs/hosts.tab
@@ -243,7 +243,7 @@
 if ($command eq "restart") {
     print 'Restarting LON-CAPA'."\n";
     print 'Ending LON-CAPA client and daemon processes'."\n";
-    foreach my $daemon ('lonsql','lond','lonc','lonmemcached','lonmaxima') {
+    foreach my $daemon ('lonsql','lond','lonc','lonmemcached','lonmaxima','lonr') {
 	my $killallname=$daemon;
 	if ($daemon eq 'lonc') { $killallname='loncnew'; }
 	&stop_daemon($daemon,$killallname);
@@ -253,7 +253,7 @@
     system("su www -c '/home/httpd/perl/loncron --justcheckdaemons'");
 } elsif ($command eq "stop") {
     print 'Stopping LON-CAPA'."\n";
-    foreach my $daemon ('lonsql','lond','lonc','lonmemcached','lonmaxima') {
+    foreach my $daemon ('lonsql','lond','lonc','lonmemcached','lonmaxima','lonr') {
 	my $killallname=$daemon;
 	if ($daemon eq 'lonc') { $killallname='loncnew'; }
 	&stop_daemon($daemon,$killallname);