--- loncom/lond	2002/02/05 17:17:49	1.65
+++ loncom/lond	2002/02/05 18:05:47	1.66
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.65 2002/02/05 17:17:49 www Exp $
+# $Id: lond,v 1.66 2002/02/05 18:05:47 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -205,6 +205,12 @@ sub checkchildren {
         unless (-e "$docdir/lon-status/londchld/$_.txt") {
 	    &logthis('Child '.$_.' did not respond');
             kill 9 => $_;
+   $emailto="$perlvar{'lonAdmEMail'},$perlvar{'lonSysEMail'}";
+   $subj="LON: $perlvar{'lonHostID'} killed lond process $_";
+   system("echo 'Killed lond process $_.' |\
+ mailto $emailto -s '$subj' > /dev/null");
+	    $execdir=$perlvar{'lonDaemons'};
+            system("cp $execdir/logs/lond.log $execdir/logs/lond.log.".$_);
         }
     }
 }