Index: trunk/gridctl.php
===================================================================
--- trunk/gridctl.php	(revision 35)
+++ trunk/gridctl.php	(revision 39)
@@ -24,7 +24,10 @@
 if ( ! $gLink )
 {
-   write_log( "$self: Could not select DB $gDB - " . mysqli_error() );
-   mail_to_admin( "fail", "Internal Error: Could not select DB $gDB" );
-   sleep(300);
+   write_log( "$self: Could not select DB $gDB - " . mysqli_error($gLink) );
+   //mail_to_admin( "fail", "Internal Error: Could not select DB $gDB" );
+   mail_to_admin( "fail",
+      "Internal Error: Could not select DB $gDB $dbhost $guser " );
+   //sleep(300);
+   sleep(3);
    exit();
 }
@@ -1007,5 +1010,5 @@
    UltraScan job error notification from gridctl.php:
 
-   Update Time    :  $updateTime
+   Update Time    :  $updateTime  [ now=$now ]
    GFAC Status    :  $status
    Cluster        :  $cluster
@@ -1050,6 +1053,6 @@
          break;
 
-         $status      = 'DATA';
-         break;
+//         $status      = 'DATA';
+//         break;
 
       case 'COMPLETED' :
