Added a function to check the status of the ZoneMinder daemons

This commit is contained in:
Kyle Johnson 2013-05-17 08:57:24 -04:00
parent f1a590c805
commit 195b5deac1
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}
}