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