Added a function to check the status of the ZoneMinder daemons
This commit is contained in:
parent
f1a590c805
commit
195b5deac1
|
@ -32,4 +32,12 @@ App::uses('Model', 'Model');
|
||||||
* @package app.Model
|
* @package app.Model
|
||||||
*/
|
*/
|
||||||
class AppModel extends 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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue