From d0009c6fb74893e9fa4ab6863514a1ce195a04f7 Mon Sep 17 00:00:00 2001 From: mcrane Date: Thu, 30 Jul 2009 07:47:20 -0600 Subject: FreeSWITCH package disable pkg running for now. --- config/freeswitch/freeswitch.inc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'config') diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc index a45ed9e9..e9704220 100644 --- a/config/freeswitch/freeswitch.inc +++ b/config/freeswitch/freeswitch.inc @@ -133,17 +133,17 @@ function guid() function pkg_is_service_running($servicename) { - exec("/bin/ps ax | awk '{ print $5 }'", $psout); - array_shift($psout); - foreach($psout as $line) { - $ps[] = trim(array_pop(explode(' ', array_pop(explode('/', $line))))); - } - if(pkg_is_service_running($servicename, $ps) or is_process_running($servicename) ) { + //exec("/bin/ps ax | awk '{ print $5 }'", $psout); + //array_shift($psout); + //foreach($psout as $line) { + // $ps[] = trim(array_pop(explode(' ', array_pop(explode('/', $line))))); + //} + //if(pkg_is_service_running($servicename, $ps) or is_process_running($servicename) ) { return true; - } - else { - return false; - } + //} + //else { + // return false; + //} } -- cgit v1.2.3