From 195b5deac1d007d3ca920f23dd4614897164470c Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Fri, 17 May 2013 08:57:24 -0400 Subject: [PATCH] Added a function to check the status of the ZoneMinder daemons --- web/app/Model/AppModel.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/app/Model/AppModel.php b/web/app/Model/AppModel.php index 0766947ed..d9fdfe12a 100644 --- a/web/app/Model/AppModel.php +++ b/web/app/Model/AppModel.php @@ -32,4 +32,12 @@ App::uses('Model', 'Model'); * @package app.Model */ class AppModel extends Model { + + public function daemonStatus() { + $zm_path_bin = Configure::read('ZM_PATH_BIN'); + $string = $zm_path_bin."/zmdc.pl status"; + $daemon_status = shell_exec ( $string ); + return $daemon_status; + } + }