Write the daemon status to Configure
This commit is contained in:
parent
eed6c81287
commit
22f9ba5c38
|
@ -37,6 +37,7 @@ class AppModel extends Model {
|
|||
$zm_path_bin = Configure::read('ZM_PATH_BIN');
|
||||
$string = $zm_path_bin."/zmdc.pl status";
|
||||
$daemon_status = shell_exec ( $string );
|
||||
Configure::write('daemonStatus', $daemon_status);
|
||||
return !strstr($daemon_status, "Unable to connect to server");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue