diff options
author | Ermal <eri@pfsense.org> | 2010-12-10 12:48:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-10 12:48:58 +0000 |
commit | 9a77cafd7e400640a855f8f5112dd59c93af92a7 (patch) | |
tree | aa2ee03075b503a42890763f82aa2593a64fca8a /config/freeswitch_dev | |
parent | 806db0240fa060b9ceb197fbc636be8bf916d95c (diff) | |
download | pfsense-packages-9a77cafd7e400640a855f8f5112dd59c93af92a7.tar.gz pfsense-packages-9a77cafd7e400640a855f8f5112dd59c93af92a7.tar.bz2 pfsense-packages-9a77cafd7e400640a855f8f5112dd59c93af92a7.zip |
Fix all this packages from their copy/paste legacy. Mostly protect poorly choosen function names with function_exists.
Diffstat (limited to 'config/freeswitch_dev')
-rw-r--r-- | config/freeswitch_dev/v_config.inc | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/config/freeswitch_dev/v_config.inc b/config/freeswitch_dev/v_config.inc index a508cefc..49e05642 100644 --- a/config/freeswitch_dev/v_config.inc +++ b/config/freeswitch_dev/v_config.inc @@ -186,19 +186,21 @@ function guid() //echo 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) ) { - return true; - //} - //else { - // return false; - //} +if (!function_exists("pkg_is_service_running")) { + 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) ) { + return true; + //} + //else { + // return false; + //} + } } |