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

raeburn lon-capa-cvs@mail.lon-capa.org
Fri, 02 Feb 2007 12:59:15 -0000


raeburn		Fri Feb  2 07:59:15 2007 EDT

  Modified files:              
    /loncom	loncron 
    /loncom/init.d	loncontrol 
  Log:
  Adding lonmaxima daemon.
  
  
Index: loncom/loncron
diff -u loncom/loncron:1.69 loncom/loncron:1.70
--- loncom/loncron:1.69	Wed Nov  1 16:08:06 2006
+++ loncom/loncron	Fri Feb  2 07:59:13 2007
@@ -2,7 +2,7 @@
 
 # Housekeeping program, started by cron, loncontrol and loncron.pl
 #
-# $Id: loncron,v 1.69 2006/11/01 21:08:06 www Exp $
+# $Id: loncron,v 1.70 2007/02/02 12:59:13 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -719,6 +719,7 @@
 	&checkon_daemon($fh,'lonc',40000,'USR1',$args);
 	&checkon_daemon($fh,'lonhttpd',40000);
 	&checkon_daemon($fh,'lonmemcached',40000);
+        &checkon_daemon($fh,'lonmaxima',40000);
     }
     if ($justreload) {
 	&checkon_daemon($fh,'lond',40000,'USR2');
Index: loncom/init.d/loncontrol
diff -u loncom/init.d/loncontrol:1.27 loncom/init.d/loncontrol:1.28
--- loncom/init.d/loncontrol:1.27	Sat Jan 28 06:21:42 2006
+++ loncom/init.d/loncontrol	Fri Feb  2 07:59:15 2007
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 #
-# $Id: loncontrol,v 1.27 2006/01/28 11:21:42 albertel Exp $
+# $Id: loncontrol,v 1.28 2007/02/02 12:59:15 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
+# processnames: lonc, lond, lonsql, lonmaxima
 # pidfiles: /home/httpd/perl/logs/lon*.pid
 # config: /etc/httpd/conf/loncapa.conf
 # config: /home/httpd/lonTabs/hosts.tab
@@ -162,7 +162,7 @@
 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','lonmemcached') {
+    foreach my $daemon ('lonsql','lond','lonc','lonhttpd','lonmemcached','lonmaxima') {
 	&stop_daemon($daemon,$daemon);
     }
     print 'Starting LON-CAPA client and daemon processes (please be patient)'.
@@ -171,7 +171,7 @@
 } elsif ($command eq "restart") {
     print 'Restarting LON-CAPA'."\n";
     print 'Ending LON-CAPA client and daemon processes'."\n";
-    foreach my $daemon ('lonsql','lond','lonc','lonhttpd','lonmemcached') {
+    foreach my $daemon ('lonsql','lond','lonc','lonhttpd','lonmemcached','lonmaxima') {
 	my $killallname=$daemon;
 	if ($daemon eq 'lonc') { $killallname='loncnew'; }
 	&stop_daemon($daemon,$killallname);
@@ -181,7 +181,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','lonhttpd','lonmemcached') {
+    foreach my $daemon ('lonsql','lond','lonc','lonhttpd','lonmemcached','lonmaxima') {
 	my $killallname=$daemon;
 	if ($daemon eq 'lonc') { $killallname='loncnew'; }
 	&stop_daemon($daemon,$killallname);