From 6fe94650843ed4bc1aa94d17842e707275993fac Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Wed, 29 Jul 2009 00:44:13 +0000 Subject: [PATCH] Added 'force' kill where the server has been rebooted --- admin/voipmonitor.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/admin/voipmonitor.php b/admin/voipmonitor.php index 7cd081cd..cf9603f0 100644 --- a/admin/voipmonitor.php +++ b/admin/voipmonitor.php @@ -63,7 +63,12 @@ $p = is_process_running(); if ($p) { if (isset($_GET['kill'])) - kill_process($p); + { + if ($_GET['kill'] == "force") + end_process($p); + else + kill_process($p); + } xhtml_head(T_("Monitor VoIP Process"),true,false,false,false,10,true); @@ -72,9 +77,14 @@ if ($p) print "

" . T_("Note: This page will automatically refresh every 10 seconds") . "

"; if (is_process_killed($p)) + { print "

" . T_("Kill signal sent: Please wait... (Note: Process will be stalled until there is activity on the VoIP Server)") . "

"; + print "

" . T_("Process is already closed (eg. server was rebooted) - click here to confirm") . "

"; + } else + { print "

" . T_("Kill the running process") . " ". T_("(requires activity on the VoIP Server to take effect)") . "

"; + } print process_get_data($p); }