Notify.php
authorAlan Knowles <alan@roojs.com>
Thu, 29 Jan 2015 08:45:33 +0000 (16:45 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 29 Jan 2015 08:45:33 +0000 (16:45 +0800)
Notify.php

index 51c262c..a6c847e 100644 (file)
@@ -393,6 +393,14 @@ class Pman_Core_Notify extends Pman
                     $this->logecho("TERMINATING: ({$p['pid']}) " . $p['cmd'] . " : " . file_get_contents($p['out']));
                     @unlink($p['out']);
                     
+                    $w = DB_DataObject::factory($this->table);
+                    $w->get($p['notify_id']);
+                    $ww = clone($w);
+                    $this->addEvent('NOTIFY', $w, 'TERMINATED - TIMEOUT' . $errmsg);
+                    $w->act_when = date('Y-m-d H:i:s', strtotime('NOW + 30  MINUTES'));
+                    $w->update($ww);
+                    
+                    
                     continue;
                 }