From 2e6778a27af584c5bde396f91d84e77d4aef5c9e Mon Sep 17 00:00:00 2001 From: dg9vh Date: Sun, 15 May 2016 21:03:52 +0000 Subject: [PATCH] relocating function isProcessRunning to tools.php --- include/functions.php | 11 ----------- include/tools.php | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/functions.php b/include/functions.php index 17bfaa4..7f936e5 100644 --- a/include/functions.php +++ b/include/functions.php @@ -19,17 +19,6 @@ function getMMDVMHostFileVersion() { } } -function isProcessRunning($processname) { - exec("pgrep " . $processname, $pids); - if(empty($pids)) { - // process not running! - return false; - } else { - // process running! - return true; - } -} - function getMMDVMConfig() { // loads MMDVM.ini into array for further use $mmdvmconfigs = array(); diff --git a/include/tools.php b/include/tools.php index 994476d..120a180 100644 --- a/include/tools.php +++ b/include/tools.php @@ -33,4 +33,15 @@ function getMHZ($freq) { return substr($freq,0,3) . "." . substr($freq,3,3) . "." . substr($freq,6) . " Mhz"; } +function isProcessRunning($processname) { + exec("pgrep " . $processname, $pids); + if(empty($pids)) { + // process not running! + return false; + } else { + // process running! + return true; + } +} + ?> \ No newline at end of file