Adding a function to control the daemons (start, stop, etc)
This commit is contained in:
parent
6a9ce02870
commit
48d162d432
|
@ -38,7 +38,16 @@ class AppModel extends Model {
|
||||||
$string = $zm_path_bin."/zmdc.pl status";
|
$string = $zm_path_bin."/zmdc.pl status";
|
||||||
$daemon_status = shell_exec ( $string );
|
$daemon_status = shell_exec ( $string );
|
||||||
return $daemon_status;
|
return $daemon_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function daemonControl( $command ) {
|
||||||
|
$string = Configure::read('ZM_PATH_BIN')."/zmdc.pl $command";
|
||||||
|
$string .= " 2>/dev/null >&- <&- >/dev/null";
|
||||||
|
$return = exec( $string );
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function reScale( $dimension, $dummy) {
|
public function reScale( $dimension, $dummy) {
|
||||||
$scale_base = Configure::read('SCALE_BASE');
|
$scale_base = Configure::read('SCALE_BASE');
|
||||||
|
|
Loading…
Reference in New Issue