Write the daemon status to Configure

This commit is contained in:
Kyle Johnson 2013-09-24 08:55:46 -04:00
parent eed6c81287
commit 22f9ba5c38
1 changed files with 1 additions and 0 deletions

View File

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